mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
pad: Return FALSE if pushing of sticky events failed
Instead of just ignoring failure of pushing sticky events and returning TRUE as if everything is fine.
This commit is contained in:
parent
83559a5970
commit
0f924b922c
1 changed files with 5 additions and 4 deletions
|
@ -4406,7 +4406,7 @@ idle_probe_stopped:
|
|||
gboolean
|
||||
gst_pad_push_event (GstPad * pad, GstEvent * event)
|
||||
{
|
||||
gboolean res;
|
||||
gboolean res = TRUE;
|
||||
GstPadProbeType type;
|
||||
gboolean sticky, serialized;
|
||||
|
||||
|
@ -4446,12 +4446,13 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
|
|||
* sticky events */
|
||||
res = (check_sticky (pad) == GST_FLOW_OK);
|
||||
}
|
||||
if (!sticky) {
|
||||
/* other events are pushed right away */
|
||||
|
||||
/* If pushing sticky events did not fail and this is no sticky event
|
||||
* push it right away */
|
||||
if (res && !sticky) {
|
||||
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