Memory leak when using gst_app_sink_pull_sample
Hi all, I am struggling with a strange memory leak problem for the past three weeks. I am using: GStreamer Core Library version 1.18.4 Windows 10 Qt 5.15.1 (MSVC 2019, 64 bit) I have two gstreamer pipelines for sending and receiving video: Sender: gst-launch-1.0 filesrc location=path/to/.mov ! qtdemux ! queue ! decodebin ! videoconvert ! videoscale ! openh264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000 Receiver: gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! openh264dec ! videoconvert ! queue ! autovideosink From the command line with autovideosink, its working but with quality of video highly reduced. I need my receiver in QT and need to display video in QML, video is displaying in QML but memory is heavily increasing at a rate of almost 0.5GB per frame and later slow down the system heavily. I run gstreamer in a separate thread and used gst_app_sink_set_drop(appsink, true) for dropping old buffers and gst_app_sink_set_max_buffers(appsink, 1) to set the maximum amount of buffer that can be queued in appsink. But still memory leak occurs.