* modules/codec/mad/*: don't let mad drop corrupted mpeg frames without telling us...
[vlc.git] / modules / codec / mad / decoder.c
index b1c7fe5..d8a4e90 100644 (file)
@@ -154,7 +154,7 @@ static int InitThread( mad_adec_thread_t * p_dec )
                       NULL,           /* header_func */
                       NULL,                /* filter */
                       libmad_output,  /* output_func */
-                      NULL,                 /* error */
+                      libmad_error,         /* error */
                       NULL );             /* message */
 
     mad_decoder_options( &p_dec->libmad_decoder, MAD_OPTION_IGNORECRC );