mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
streamsynchronizer: Don't leak the syncstream object
It was leaked when breaking out early when handling GST_EVENT_STREAM_START Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
This commit is contained in:
parent
45e8137e6e
commit
eebb794a4f
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue