matroska: Quiet a WARN when parsing push mode
authorJan Schmidt <jan@centricular.com>
Mon, 16 Jan 2017 23:48:57 +0000 (10:48 +1100)
committerJan Schmidt <jan@centricular.com>
Tue, 17 Jan 2017 00:50:27 +0000 (11:50 +1100)
This warning was noisy when returning EOS, which is
just used to indicate more data is needed from upstream.

gst/matroska/ebml-read.c

index 0df7086..64893f1 100644 (file)
@@ -127,7 +127,7 @@ gst_ebml_peek_id_length (guint32 * _id, guint64 * _length, guint * _needed,
   /* ERRORS */
 peek_error:
   {
-    if (ret != GST_FLOW_FLUSHING)
+    if (ret != GST_FLOW_FLUSHING && ret != GST_FLOW_EOS)
       GST_WARNING_OBJECT (el, "peek failed, ret = %s", gst_flow_get_name (ret));
     else
       GST_DEBUG_OBJECT (el, "peek failed, ret = %s", gst_flow_get_name (ret));