From: Sam Hocevar Date: Thu, 11 Jul 2002 19:44:10 +0000 (+0000) Subject: * ./plugins/mad/mad_libmad.c: prevent the MAD decoder from looping endlessly X-Git-Tag: 0.5.0~1270 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e2518c9090d25c390cd6b5db16d9acf66632105c;p=vlc * ./plugins/mad/mad_libmad.c: prevent the MAD decoder from looping endlessly when the audio output fifo could not be created. --- diff --git a/plugins/mad/mad_libmad.c b/plugins/mad/mad_libmad.c index 3cc3f60c0b..0ece7cea3c 100644 --- a/plugins/mad/mad_libmad.c +++ b/plugins/mad/mad_libmad.c @@ -297,7 +297,7 @@ enum mad_flow libmad_output(void *data, struct mad_header const *p_libmad_header if ( p_mad_adec->p_aout_fifo == NULL ) { - return( -1 ); + return MAD_FLOW_BREAK; } msg_Dbg( p_mad_adec->p_fifo, "aout fifo created");