From eebb794a4fb6ebdfcd1918e7163e227e4c33a151 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 11 Nov 2022 14:18:21 +0100 Subject: [PATCH] streamsynchronizer: Don't leak the syncstream object It was leaked when breaking out early when handling GST_EVENT_STREAM_START Part-of: --- subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c b/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c index ec50263..6a0f26c 100644 --- a/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c +++ b/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c @@ -419,13 +419,14 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent, "Stream %d belongs to running stream %d, no waiting", stream->stream_number, ostream->stream_number); stream->wait = FALSE; - + gst_syncstream_unref (stream); GST_STREAM_SYNCHRONIZER_UNLOCK (self); break; } } else if (group_id == self->group_id) { GST_DEBUG_OBJECT (pad, "Stream %d belongs to running group %d, " "no waiting", stream->stream_number, group_id); + gst_syncstream_unref (stream); GST_STREAM_SYNCHRONIZER_UNLOCK (self); break; } -- 2.7.4