mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
queue2: don't print criticals when receiving custom events in ring buffer mode
Downgrade from g_warning to GST_WARNING log message. https://bugzilla.gnome.org/show_bug.cgi?id=758276
This commit is contained in:
parent
533d1c8eb7
commit
ffecef4fa0
1 changed files with 5 additions and 4 deletions
|
@ -2175,10 +2175,11 @@ gst_queue2_locked_enqueue (GstQueue2 * queue, gpointer item,
|
|||
/* ERRORS */
|
||||
unexpected_event:
|
||||
{
|
||||
g_warning
|
||||
("Unexpected event of kind %s can't be added in temp file of queue %s ",
|
||||
gst_event_type_get_name (GST_EVENT_TYPE (item)),
|
||||
GST_OBJECT_NAME (queue));
|
||||
gboolean is_custom = GST_EVENT_TYPE (item) < GST_EVENT_CUSTOM_UPSTREAM;
|
||||
|
||||
GST_WARNING_OBJECT (queue, "%s%s event can't be added to temp file: "
|
||||
"%" GST_PTR_FORMAT, is_custom ? "Unexpected " : "",
|
||||
GST_EVENT_TYPE_NAME (item), GST_EVENT_CAST (item));
|
||||
gst_event_unref (GST_EVENT_CAST (item));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue