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:
Edward Hervey 2014-11-28 11:16:00 +01:00
parent 21321ce674
commit 78577fd8e4

View file

@ -1506,8 +1506,8 @@ gst_element_default_send_event (GstElement * element, GstEvent * event)
GstPad *pad; GstPad *pad;
pad = GST_EVENT_IS_DOWNSTREAM (event) ? 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) { if (pad) {
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,