mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
inputselector: Fix compilation, activate_sinkpad() has no notify parameter
This commit is contained in:
parent
55637934d1
commit
ab025f08e7
1 changed files with 4 additions and 3 deletions
|
@ -342,14 +342,15 @@ gst_selector_pad_event (GstPad * pad, GstEvent * event)
|
|||
gboolean forward = TRUE;
|
||||
GstInputSelector *sel;
|
||||
GstSelectorPad *selpad;
|
||||
GstPad *prev_active_sinkpad;
|
||||
GstPad *active_sinkpad;
|
||||
gboolean notify;
|
||||
|
||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||
selpad = GST_SELECTOR_PAD_CAST (pad);
|
||||
|
||||
GST_INPUT_SELECTOR_LOCK (sel);
|
||||
active_sinkpad = gst_input_selector_activate_sinkpad (sel, pad, ¬ify);
|
||||
prev_active_sinkpad = sel->active_sinkpad;
|
||||
active_sinkpad = gst_input_selector_activate_sinkpad (sel, pad);
|
||||
|
||||
/* only forward if we are dealing with the active sinkpad or if select_all
|
||||
* is enabled */
|
||||
|
@ -357,7 +358,7 @@ gst_selector_pad_event (GstPad * pad, GstEvent * event)
|
|||
forward = FALSE;
|
||||
GST_INPUT_SELECTOR_UNLOCK (sel);
|
||||
|
||||
if (notify)
|
||||
if (prev_active_sinkpad != active_sinkpad && pad == active_sinkpad)
|
||||
g_object_notify (G_OBJECT (sel), "active-pad");
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
|
|
Loading…
Reference in a new issue