mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
pad: No sticky events must arrive after EOS
This commit is contained in:
parent
e4cbae46cc
commit
ae47133360
1 changed files with 4 additions and 2 deletions
|
@ -4435,10 +4435,12 @@ store_sticky_event (GstPad * pad, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
|
||||
if (type < GST_EVENT_TYPE (ev->event)) {
|
||||
if (type < GST_EVENT_TYPE (ev->event) || (type != GST_EVENT_TYPE (ev->event)
|
||||
&& GST_EVENT_TYPE (ev->event) == GST_EVENT_EOS)) {
|
||||
/* STREAM_START, CAPS and SEGMENT must be delivered in this order. By
|
||||
* storing the sticky ordered we can check that this is respected. */
|
||||
if (G_UNLIKELY (GST_EVENT_TYPE (ev->event) <= GST_EVENT_SEGMENT))
|
||||
if (G_UNLIKELY (GST_EVENT_TYPE (ev->event) <= GST_EVENT_SEGMENT
|
||||
|| GST_EVENT_TYPE (ev->event) == GST_EVENT_EOS))
|
||||
g_warning (G_STRLOC
|
||||
":%s:<%s:%s> Sticky event misordering, got '%s' before '%s'",
|
||||
G_STRFUNC, GST_DEBUG_PAD_NAME (pad),
|
||||
|
|
Loading…
Reference in a new issue