]> git.sesse.net Git - vlc/commitdiff
* ./plugins/mad/mad_libmad.c: prevent the MAD decoder from looping endlessly
authorSam Hocevar <sam@videolan.org>
Thu, 11 Jul 2002 19:44:10 +0000 (19:44 +0000)
committerSam Hocevar <sam@videolan.org>
Thu, 11 Jul 2002 19:44:10 +0000 (19:44 +0000)
    when the audio output fifo could not be created.

plugins/mad/mad_libmad.c

index 3cc3f60c0b4d01678db7146427375a7d2201c696..0ece7cea3c2018331c72652445bf416ceb3a6c4c 100644 (file)
@@ -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");