mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
pad: Only inforce STREAM_START, CAPS and SEGMENT ordering
Previous patch was inforcing a complete ordering of the sticky events, while in fact, only STREAM_START, CAPS and SEGMENT events need proper ordering. See: https://bugzilla.gnome.org/show_bug.cgi?id=688188
This commit is contained in:
parent
98f6b75cd3
commit
f6aa4d85c1
1 changed files with 5 additions and 2 deletions
|
@ -4436,6 +4436,9 @@ store_sticky_event (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type < GST_EVENT_TYPE (ev->event)) {
|
if (type < GST_EVENT_TYPE (ev->event)) {
|
||||||
|
/* 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))
|
||||||
g_warning (G_STRLOC ":%s:<%s:%s> Sticky event misordering detected",
|
g_warning (G_STRLOC ":%s:<%s:%s> Sticky event misordering detected",
|
||||||
G_STRFUNC, GST_DEBUG_PAD_NAME (pad));
|
G_STRFUNC, GST_DEBUG_PAD_NAME (pad));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue