Do not check for decoder error in the demux thread
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 22 Oct 2008 19:49:11 +0000 (22:49 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 22 Oct 2008 19:49:11 +0000 (22:49 +0300)
That was only an optimization, and it fails thread-safety.
In any case, a failed decoder will still dequeue (and discard) blocks.

src/input/decoder.c

index 7787e7d..159682d 100644 (file)
@@ -337,7 +337,7 @@ void input_DecoderDecode( decoder_t *p_dec, block_t *p_block )
     if( p_owner->p_input->p->b_out_pace_control )
     {
         /* FIXME !!!!! */
-        while( vlc_object_alive( p_dec ) && !p_dec->b_error &&
+        while( vlc_object_alive( p_dec ) &&
                block_FifoCount( p_owner->p_fifo ) > 10 )
         {
             msleep( 1000 );