transcode: flag a bug
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 15:01:40 +0000 (18:01 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 15:01:40 +0000 (18:01 +0300)
modules/stream_out/transcode.c

index 3819e8f..4c3dade 100644 (file)
@@ -2093,7 +2093,11 @@ static picture_t *video_new_buffer_decoder( decoder_t *p_dec )
         {
             /* Encoder still has stuff to encode, wait to clear-up the list */
             while( p_ssys->i_first_pic == i_first_pic )
         {
             /* Encoder still has stuff to encode, wait to clear-up the list */
             while( p_ssys->i_first_pic == i_first_pic )
-                msleep( 5000 );
+            {
+#warning THERE IS A DEFINITELY BUG! LOCKING IS INSUFFICIENT!
+                msleep( 10000 );
+                barrier ();
+            }
         }
     }
 
         }
     }