mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
pad: Improve warning message naming events type name
With this patch, message should look like ¨Sticky event misordering, got 'caps' before 'stream-start'¨ making it faster to debug. https://bugzilla.gnome.org/show_bug.cgi?id=688188
This commit is contained in:
parent
f6aa4d85c1
commit
e8a9ffa092
1 changed files with 5 additions and 2 deletions
|
@ -4439,8 +4439,11 @@ store_sticky_event (GstPad * pad, GstEvent * event)
|
||||||
/* STREAM_START, CAPS and SEGMENT must be delivered in this order. By
|
/* STREAM_START, CAPS and SEGMENT must be delivered in this order. By
|
||||||
* storing the sticky ordered we can check that this is respected. */
|
* 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))
|
||||||
g_warning (G_STRLOC ":%s:<%s:%s> Sticky event misordering detected",
|
g_warning (G_STRLOC
|
||||||
G_STRFUNC, GST_DEBUG_PAD_NAME (pad));
|
":%s:<%s:%s> Sticky event misordering, got '%s' before '%s'",
|
||||||
|
G_STRFUNC, GST_DEBUG_PAD_NAME (pad),
|
||||||
|
gst_event_type_get_name (GST_EVENT_TYPE (ev->event)),
|
||||||
|
gst_event_type_get_name (type));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue