mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
plugins/elements/gstoutputselector.c: Choose right pad for sending events. Fixes #555244
Original commit message from CVS: * plugins/elements/gstoutputselector.c: Choose right pad for sending events. Fixes #555244
This commit is contained in:
parent
9020592e1c
commit
832f2f46e7
1 changed files with 5 additions and 2 deletions
|
@ -387,6 +387,7 @@ gst_output_selector_handle_sink_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
GstOutputSelector *sel;
|
GstOutputSelector *sel;
|
||||||
|
GstPad *output_pad = NULL;
|
||||||
|
|
||||||
sel = GST_OUTPUT_SELECTOR (gst_pad_get_parent (pad));
|
sel = GST_OUTPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
|
@ -419,8 +420,10 @@ gst_output_selector_handle_sink_event (GstPad * pad, GstEvent * event)
|
||||||
gst_pad_event_default (pad, event);
|
gst_pad_event_default (pad, event);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Send other events to active src pad */
|
/* Send other events to pending or active src pad */
|
||||||
res = gst_pad_push_event (sel->active_srcpad, event);
|
output_pad =
|
||||||
|
sel->pending_srcpad ? sel->pending_srcpad : sel->active_srcpad;
|
||||||
|
res = gst_pad_push_event (output_pad, event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue