pad: don't print WARN debug statements for normal things like EOS
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 4 Feb 2010 17:43:32 +0000 (17:43 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 15 Feb 2010 00:08:16 +0000 (00:08 +0000)
gst/gstpad.c

index f0fa1881c5dddbea9eeceda4145ce22ed2b13fa3..eb006104d28a8713d70af4b44a26a2968e89a93a 100644 (file)
@@ -4791,8 +4791,9 @@ not_connected:
 pull_range_failed:
   {
     *buffer = NULL;
-    GST_CAT_WARNING_OBJECT (GST_CAT_SCHEDULING, pad,
-        "pullrange failed %s", gst_flow_get_name (ret));
+    GST_CAT_LEVEL_LOG (GST_CAT_SCHEDULING,
+        (ret >= GST_FLOW_UNEXPECTED) ? GST_LEVEL_INFO : GST_LEVEL_WARNING,
+        pad, "pullrange failed, flow: %s", gst_flow_get_name (ret));
     return ret;
   }
 dropping: