From 8c9931e13ef5b7dbe2179d245ae65999cad7f035 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 13 Feb 2009 14:39:29 +0100 Subject: Don't use GST_ERROR for non-error cases. 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 | 3 ++- gst/law/mulaw-decode.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'gst/law') diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c index cead1444..f308cf70 100644 --- a/gst/law/alaw-decode.c +++ b/gst/law/alaw-decode.c @@ -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; } } diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index a1727d9c..83b38397 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -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; } -- cgit