Don't use GST_ERROR for non-error cases.
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 13 Feb 2009 13:39:29 +0000 (14:39 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 23 Feb 2009 10:09:53 +0000 (11:09 +0100)
Turn a GST_ERROR line into a GST_DEBUG line so that we don't spam the log with
errors. Fixes #570781.

gst/law/alaw-decode.c
gst/law/mulaw-decode.c

index cead144..f308cf7 100644 (file)
@@ -300,7 +300,8 @@ not_negotiated:
 alloc_failed:
   {
     gst_buffer_unref (buffer);
-    GST_ERROR_OBJECT (alawdec, "pad alloc failed");
+    GST_DEBUG_OBJECT (alawdec, "pad alloc failed %d (%s)", ret,
+        gst_flow_get_name (ret));
     return ret;
   }
 }
index a1727d9..83b3839 100644 (file)
@@ -264,7 +264,8 @@ not_negotiated:
   }
 alloc_failed:
   {
-    GST_ERROR_OBJECT (mulawdec, "pad alloc failed");
+    GST_DEBUG_OBJECT (mulawdec, "pad alloc failed %d (%s)", ret,
+        gst_flow_get_name (ret));
     gst_buffer_unref (buffer);
     return ret;
   }