summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorworo <woro@e10066b5-e1e2-0310-b819-94efdf66514b>2008-02-07 10:08:20 +0000
committerworo <woro@e10066b5-e1e2-0310-b819-94efdf66514b>2008-02-07 10:08:20 +0000
commit79490eb023956e9ea04d1be02f0e0e3555126fac (patch)
tree6476d75f786a9a5cd3ae30e23e3e90316a7aebb9
parentf72a13125d2be05cf090c1b804c34b510b1db81a (diff)
downloadvdr-plugin-muggle-79490eb023956e9ea04d1be02f0e0e3555126fac.tar.gz
vdr-plugin-muggle-79490eb023956e9ea04d1be02f0e0e3555126fac.tar.bz2
clean mp3 decoder error messages
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@999 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r--vdr_decoder_mp3.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/vdr_decoder_mp3.c b/vdr_decoder_mp3.c
index 7cc4558..70af40c 100644
--- a/vdr_decoder_mp3.c
+++ b/vdr_decoder_mp3.c
@@ -263,12 +263,14 @@ eDecodeStatus mgMP3Decoder::decodeError (bool hdr)
hdr ? "hdr " : "", m_framenum, mad_stream_errorstr (&m_madstream));
return dsError;
}
- else
+ else if (m_madstream.error!=MAD_ERROR_LOSTSYNC || m_framenum>0)
+ // sync is always lost for frame 0, ignore this.
+ // Do we use mad incorrectly?
{
m_errcount += hdr ? 1 : 100;
printf
- ("mgMP3Decoder::decodeError: mad decode %s error, frame=%d count=%d: %s. Returning dsOK\n",
- hdr ? "hdr " : "", m_framenum, m_errcount,
+ ("mgMP3Decoder::decodeError: mad decode%s error, frame=%d count=%d: %s. Returning dsOK\n",
+ hdr ? " hdr" : "", m_framenum, m_errcount,
mad_stream_errorstr (&m_madstream));
}
return dsOK;