Fix deadlock when the decoder return an error.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 19 Nov 2008 20:22:30 +0000 (21:22 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 19 Nov 2008 20:22:30 +0000 (21:22 +0100)
src/input/decoder.c

index 93b27c0..87d5dc8 100644 (file)
@@ -823,13 +823,9 @@ static void *DecoderThread( vlc_object_t *p_this )
         if( p_block )
         {
             if( p_dec->b_error )
         if( p_block )
         {
             if( p_dec->b_error )
-            {   /* Trash all received PES packets */
                 block_Release( p_block );
                 block_Release( p_block );
-            }
-            else if( DecoderProcess( p_dec, p_block ) != VLC_SUCCESS )
-            {
-                break;
-            }
+            else
+                DecoderProcess( p_dec, p_block );
         }
     }
 
         }
     }