gStreamer memory leak observed when restarting the pipeline multiple times
Hi, I have a simple program which has the following pipeline: rtspsrc ! decodebin ! videoconvert ! videorate ! appsink The pipeline is started using gst_parse_launch(). For every input job received (new rtsp camera stream to be analyzed), the pipeline is recreated and restarted and we read the input frames from the appsink. However, everytime the pipeline is restarted, the memory usage of the application shoots up. I have attached the sample program below. main2.cpp gstCapture.h gstCapture.cpp
I have also tried to create the pipeline dynamically, i.e to create each element at run time and link them and making sure to free each and every gstreamer resource at the end, but the mem leak observed there is even more.
GStreamer and its plugin versions are : v1.17 OS: Ubuntu 18.04 x86_64
Thanks Suraj