rtspclientsink: mark cached caps as maybe-leaked to make leaks tracer happy
authorTim-Philipp Müller <tim@centricular.com>
Mon, 15 Feb 2021 12:26:30 +0000 (12:26 +0000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 15 Feb 2021 12:46:22 +0000 (12:46 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/190>

gst/rtsp-sink/gstrtspclientsink.c

index fa18e78..19ef7ec 100644 (file)
@@ -1090,6 +1090,8 @@ gst_rtsp_client_sink_get_all_payloaders_caps (void)
         goto out;
     }
 
+    GST_MINI_OBJECT_FLAG_SET (caps, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
+
   out:
     g_once_init_leave (&ret, caps);
   }