From 1fc2bd8032db05e2bfdae4635058b97340dcbabd Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Tue, 31 Oct 2023 16:26:00 +0000 Subject: [PATCH] adaptivedemux2-stream: Use gst_clear_object when releasing collection Part-of: --- .../ext/adaptivedemux2/gstadaptivedemux-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c index 6e6250bd92..7bee9fcd45 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c @@ -151,7 +151,7 @@ gst_adaptive_demux2_stream_finalize (GObject * object) gst_caps_unref (stream->pending_caps); gst_clear_tag_list (&stream->pending_tags); - g_clear_pointer (&stream->stream_collection, gst_object_unref); + gst_clear_object (&stream->stream_collection); g_mutex_clear (&stream->prepare_lock); g_cond_clear (&stream->prepare_cond);