mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
element: Figure default send_event direction handling
If we get a downstream event we want to send it to a random SINK pad (and vice-versa).
This commit is contained in:
parent
21321ce674
commit
78577fd8e4
1 changed files with 2 additions and 2 deletions
|
@ -1506,8 +1506,8 @@ gst_element_default_send_event (GstElement * element, GstEvent * event)
|
|||
GstPad *pad;
|
||||
|
||||
pad = GST_EVENT_IS_DOWNSTREAM (event) ?
|
||||
gst_element_get_random_pad (element, TRUE, GST_PAD_SRC) :
|
||||
gst_element_get_random_pad (element, TRUE, GST_PAD_SINK);
|
||||
gst_element_get_random_pad (element, TRUE, GST_PAD_SINK) :
|
||||
gst_element_get_random_pad (element, TRUE, GST_PAD_SRC);
|
||||
|
||||
if (pad) {
|
||||
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
|
||||
|
|
Loading…
Reference in a new issue