Using gst_parse_launch() will lead to any memory issue or memory leak?

we are using gst_parse_launch() to launch below pipeline :
pipeline.pipeline = gst_parse_launch (“v4l2src device=/dev/video10 num-buffers=1 ! video/x-h264, width=512, height=512, framerate=30/1, stream-format=byte-stream ! h264parse ! omxh264dec ! queue max-size-time=400000000 ! videoconvert ! avenc_png ! filesink location=/tmp/Phone_Img1.png”, &error);

Question :

  1. will lead to any memory issue or memory leak ?
  2. how to free the pipeline resources?
  3. will it create ant issue if we continuously launching and stopping GStreamer pipelines ?

Hello,

There are no known issues or memory leaks using the gst_parse_launch.
To free the pipeline and its children (elements added to it using parse launch) doing the gst_object_unref(pipeline) should be sufficient after the setting the pipeline to NULL state.

Hi Taruntej,

Thanks for the update.