From: Andre Noll Date: Sat, 18 Dec 2010 12:00:04 +0000 (+0100) Subject: aacdec: Print error message only once. X-Git-Tag: v0.4.6~49^2~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=412644d90875f8d361e0e587e3a0e1e7cb89b252;p=paraslash.git aacdec: Print error message only once. No need to call NeAACDecGetErrorMessage() twice. --- diff --git a/aacdec_filter.c b/aacdec_filter.c index 5b2d2a27..92f33d56 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -167,12 +167,10 @@ next_buffer: ret = -E_AAC_DECODE; if (padd->error_count++ > MAX_ERRORS) goto err; - PARA_ERROR_LOG("frame_error: %d (%s), consumed: %zu + %zd + %lu\n", - err, NeAACDecGetErrorMessage(padd->frame_info.error), + PARA_ERROR_LOG("%s\n", NeAACDecGetErrorMessage(err)); + PARA_ERROR_LOG("consumed: %zu + %zd + %lu\n", padd->consumed_total, consumed, padd->frame_info.bytesconsumed); - PARA_ERROR_LOG("%s\n", NeAACDecGetErrorMessage( - padd->frame_info.error)); if (consumed < len) consumed++; /* catch 21 */ goto success;