diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index d64c69099e..7e1b9910a0 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -3051,6 +3051,10 @@ handle_message (GstBin * bin, GstMessage * msg) gst_message_new_stream_collection ((GstObject *) urisrc, aggregated); } + if (aggregated) { + /* Remove ref obtained from aggregate_collection() */ + gst_object_unref (aggregated); + } gst_object_unref (collection); } }