mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
concat: fix qos event handling
We were shadowing the sinkpad variable resulting in: - the QoS event to be send to all sink pads instead of the active one - the pad to be leaked Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1543>
This commit is contained in:
parent
ba873ba8b9
commit
7bf0c5b7be
1 changed files with 0 additions and 3 deletions
|
@ -756,14 +756,11 @@ gst_concat_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
case GST_EVENT_QOS:{
|
||||
GstPad *sinkpad = NULL;
|
||||
|
||||
g_mutex_lock (&self->lock);
|
||||
if ((sinkpad = self->current_sinkpad))
|
||||
gst_object_ref (sinkpad);
|
||||
g_mutex_unlock (&self->lock);
|
||||
|
||||
|
||||
if (!sinkpad) {
|
||||
gst_event_replace (&event, NULL);
|
||||
ret = FALSE;
|
||||
|
|
Loading…
Reference in a new issue