mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
inputselector: Get the active sinkpad again after taking the lock when handling events
It might have changed in the meantime. https://bugzilla.gnome.org/show_bug.cgi?id=741893
This commit is contained in:
parent
f4bd5f119a
commit
3137043c3a
1 changed files with 1 additions and 0 deletions
|
@ -465,6 +465,7 @@ gst_selector_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
gst_object_unref (prev_active_sinkpad);
|
gst_object_unref (prev_active_sinkpad);
|
||||||
|
|
||||||
GST_INPUT_SELECTOR_LOCK (sel);
|
GST_INPUT_SELECTOR_LOCK (sel);
|
||||||
|
active_sinkpad = gst_input_selector_activate_sinkpad (sel, pad);
|
||||||
|
|
||||||
/* only forward if we are dealing with the active sinkpad */
|
/* only forward if we are dealing with the active sinkpad */
|
||||||
forward = (pad == active_sinkpad);
|
forward = (pad == active_sinkpad);
|
||||||
|
|
Loading…
Reference in a new issue