mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
pad: avoid inadvertently dropping an event
... particularly a non-sticky serialized event that happens to pass when an event update is pending.
This commit is contained in:
parent
1554aaf484
commit
b3bf6cdfd8
1 changed files with 5 additions and 1 deletions
|
@ -4539,7 +4539,11 @@ gst_pad_send_event (GstPad * pad, GstEvent * event)
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
|
||||||
result = TRUE;
|
result = TRUE;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
/* ensure to pass on event;
|
||||||
|
* note that a sticky event has already been updated above */
|
||||||
|
if (G_LIKELY (!needs_events || !sticky)) {
|
||||||
GstPadEventFunction eventfunc;
|
GstPadEventFunction eventfunc;
|
||||||
|
|
||||||
if (G_UNLIKELY ((eventfunc = GST_PAD_EVENTFUNC (pad)) == NULL))
|
if (G_UNLIKELY ((eventfunc = GST_PAD_EVENTFUNC (pad)) == NULL))
|
||||||
|
|
Loading…
Reference in a new issue