X-Git-Url: https://git.videolan.org/?p=vlc.git;a=blobdiff_plain;f=plugins%2Fmad%2Fmad_adec.c;h=d84fad201b72f5282a5136ecf522bb9b794bf029;hp=b3190f827a16887f2b4be0b0ff0803295ca8b5dd;hb=8d59e9368cc81f28328b46d2858fcc8059ebeeb3;hpb=cc0f0bb6fd28d5ed3463be4a227990cbae8a849f diff --git a/plugins/mad/mad_adec.c b/plugins/mad/mad_adec.c index b3190f827a..d84fad201b 100644 --- a/plugins/mad/mad_adec.c +++ b/plugins/mad/mad_adec.c @@ -69,7 +69,7 @@ MODULE_CONFIG_STOP MODULE_INIT_START SET_DESCRIPTION( "Libmad MPEG 1/2/3 audio decoder library" ) - ADD_CAPABILITY( DECODER, 50 ) + ADD_CAPABILITY( DECODER, 950 ) MODULE_INIT_STOP MODULE_ACTIVATE_START @@ -180,10 +180,10 @@ static int InitThread( mad_adec_thread_t * p_mad_adec ) mad_decoder_init( p_mad_adec->libmad_decoder, p_mad_adec, /* vlc's thread structure and p_fifo playbuffer */ libmad_input, /* input_func */ - libmad_header, /* header_func */ + 0, /* header_func */ 0, /* filter */ libmad_output, /* output_func */ - 0, /* error */ + 0, /* error */ 0); /* message */ mad_decoder_options(p_mad_adec->libmad_decoder, MAD_OPTION_IGNORECRC); @@ -231,9 +231,8 @@ static void EndThread (mad_adec_thread_t * p_mad_adec) /* mad_decoder_finish releases the memory allocated inside the struct */ mad_decoder_finish( p_mad_adec->libmad_decoder ); - /* Unlock the modules */ + /* Unlock the modules, p_mad_adec->p_config is released by the decoder subsystem */ free( p_mad_adec->libmad_decoder ); -// free( p_mad_adec->p_config ); /* for now a reminder until integration with cvs */ free( p_mad_adec ); intf_ErrMsg ("mad_adec debug: mad decoder thread %p destroyed", p_mad_adec);