mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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:
parent
9b308b2b5b
commit
8e6b5c7acf
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue