mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-28 16:04:54 +00:00
concat: Make QoS forward MT-safe
In the same way it's done for other event forwarding.
This commit is contained in:
parent
4670036691
commit
08ad748ced
1 changed files with 19 additions and 7 deletions
|
@ -715,7 +715,14 @@ gst_concat_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
GstClockTimeDiff diff;
|
||||
GstClockTime timestamp;
|
||||
gdouble proportion;
|
||||
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_parse_qos (event, &type, &proportion, &diff, ×tamp);
|
||||
gst_event_unref (event);
|
||||
|
||||
|
@ -727,6 +734,11 @@ gst_concat_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
} else {
|
||||
ret = FALSE;
|
||||
}
|
||||
gst_object_unref (sinkpad);
|
||||
} else {
|
||||
gst_event_unref (event);
|
||||
ret = FALSE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_STOP:{
|
||||
|
|
Loading…
Reference in a new issue