diff options
author | Edward Hervey <bilboed@bilboed.com> | 2014-11-28 16:25:02 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2014-11-28 17:25:14 +0100 |
commit | 86ca8c41fa3a9f4d1be44d4970c13bc5dc6cd83a (patch) | |
tree | d1133ba739a81947c70dbb6c3f95fb335eabe5a1 | |
parent | 6e027c545660e2a2135e11d757b0f4223ff53902 (diff) |
element: Fix doc and default implementation of send_event
The documentation states that gst_element_send_event is to "send an event
to an element".
Therefore we *send* upstream events to a source pad and downstream events
to a sink pad
-rw-r--r-- | gst/gstelement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstelement.c b/gst/gstelement.c index 87a1bd821..8e68a2aa0 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -1516,7 +1516,7 @@ gst_element_default_send_event (GstElement * element, GstEvent * event) (GST_PAD_DIRECTION (pad) == GST_PAD_SRC ? "src" : "sink"), GST_DEBUG_PAD_NAME (pad)); - result = gst_pad_push_event (pad, event); + result = gst_pad_send_event (pad, event); gst_object_unref (pad); } else { GST_CAT_INFO (GST_CAT_ELEMENT_PADS, "can't send %s event on element %s", @@ -1533,7 +1533,7 @@ gst_element_default_send_event (GstElement * element, GstEvent * event) * * Sends an event to an element. If the element doesn't implement an * event handler, the event will be pushed on a random linked sink pad for - * upstream events or a random linked source pad for downstream events. + * downstream events or a random linked source pad for upstream events. * * This function takes ownership of the provided event so you should * gst_event_ref() it if you want to reuse the event after this call. |