diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-11-18 14:46:45 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-11-18 14:56:44 +0300 |
commit | d5c86cde3098b993834e02a15a098269d97feabc (patch) | |
tree | 7b742bde494e072be51d04c5c2ce133c3486dc8a | |
parent | 001f6dfe51b18023f60409ba40242f8e8939adeb (diff) |
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
-rw-r--r-- | plugins/elements/gstqueue2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 656066e617..972c4d794c 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -2134,10 +2134,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; } |