]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 2472b2cfa70b916d69b7d9c962aceb79050acd38..73ce0e502c9181c1d289cae48a638a5965248eea 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);