Revert "pad: Return FALSE if pushing of sticky events failed"

This reverts commit 0f924b922c.

Sticky events should always return TRUE when pushing and will
only cause failures during data flow later.
This commit is contained in:
Sebastian Dröge 2012-06-02 20:01:01 +02:00
parent 9b308b2b5b
commit 8e6b5c7acf

View file

@ -4447,7 +4447,7 @@ idle_probe_stopped:
gboolean
gst_pad_push_event (GstPad * pad, GstEvent * event)
{
gboolean res = TRUE;
gboolean res;
GstPadProbeType type;
gboolean sticky, serialized;
@ -4487,13 +4487,12 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
* sticky events */
res = (check_sticky (pad) == GST_FLOW_OK);
}
/* If pushing sticky events did not fail and this is no sticky event
* push it right away */
if (res && !sticky) {
if (!sticky) {
/* other events are pushed right away */
res = (gst_pad_push_event_unchecked (pad, event, type) == GST_FLOW_OK);
} else {
gst_event_unref (event);
res = TRUE;
}
GST_OBJECT_UNLOCK (pad);