projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4bd5f1
)
inputselector: Get the active sinkpad again after taking the lock when handling events
author
Song Bing
<b06498@freescale.com>
Tue, 23 Dec 2014 11:53:58 +0000
(12:53 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 23 Dec 2014 11:53:58 +0000
(12:53 +0100)
It might have changed in the meantime.
https://bugzilla.gnome.org/show_bug.cgi?id=741893
plugins/elements/gstinputselector.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstinputselector.c
b/plugins/elements/gstinputselector.c
index
304827c
..
e497dc2
100644
(file)
--- a/
plugins/elements/gstinputselector.c
+++ b/
plugins/elements/gstinputselector.c
@@
-465,6
+465,7
@@
gst_selector_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
gst_object_unref (prev_active_sinkpad);
GST_INPUT_SELECTOR_LOCK (sel);
gst_object_unref (prev_active_sinkpad);
GST_INPUT_SELECTOR_LOCK (sel);
+ active_sinkpad = gst_input_selector_activate_sinkpad (sel, pad);
/* only forward if we are dealing with the active sinkpad */
forward = (pad == active_sinkpad);
/* only forward if we are dealing with the active sinkpad */
forward = (pad == active_sinkpad);