mp3dec: Improve error message.
authorAndre Noll <maan@systemlinux.org>
Sat, 9 Jan 2010 00:31:38 +0000 (01:31 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 9 Jan 2010 00:31:38 +0000 (01:31 +0100)
mp3dec_filter.c

index 2472b2c..73ce0e5 100644 (file)
@@ -228,7 +228,7 @@ next_frame:
        pmd->channels = MAD_NCHANNELS(&pmd->frame.header);
        ret = mad_frame_decode(&pmd->frame, &pmd->stream);
        if (ret != 0) {
-               PARA_CRIT_LOG("frame decode: %d\n", ret);
+               PARA_INFO_LOG("frame decode: %s\n", mad_stream_errorstr(&pmd->stream));
                used = used_mad_buffer_bytes(&pmd->stream, len);
                ret = handle_decode_error(pmd, used);
                btr_consume(btrn, used);