From 7a7226c971c5933dafb6f4646a0d3d21bf4c942b Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 12 Jan 2004 03:58:47 +0000 Subject: - ignore CRC errors when decoding MP3s, so that Bastien can listen to his broken files CVS patchset: 6029 CVS date: 2004/01/12 03:58:47 --- src/libmad/xine_decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libmad/xine_decoder.c b/src/libmad/xine_decoder.c index 2b62d5623..ae08b4ac4 100644 --- a/src/libmad/xine_decoder.c +++ b/src/libmad/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.48 2003/12/14 22:13:23 siggi Exp $ + * $Id: xine_decoder.c,v 1.49 2004/01/12 03:58:47 hadess Exp $ * * stuff needed to turn libmad into a xine decoder plugin */ @@ -79,6 +79,7 @@ static void mad_reset (audio_decoder_t *this_gen) { mad_synth_init (&this->synth); mad_stream_init (&this->stream); + this->stream.options = MAD_OPTION_IGNORECRC; mad_frame_init (&this->frame); } @@ -316,6 +317,8 @@ static audio_decoder_t *open_plugin (audio_decoder_class_t *class_gen, xine_stre mad_stream_init (&this->stream); mad_frame_init (&this->frame); + this->stream.options = MAD_OPTION_IGNORECRC; + lprintf ("init\n"); return &this->audio_decoder; -- cgit v1.2.3