[vlc-devel] commit: transcode: flag a bug ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Aug 25 17:01:54 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 25 18:01:40 2009 +0300| [6ab2d2669c136f47a33a06ec209e4ec2e98eea0a] | committer: Rémi Denis-Courmont 

transcode: flag a bug

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ab2d2669c136f47a33a06ec209e4ec2e98eea0a
---

 modules/stream_out/transcode.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index 3819e8f..4c3dade 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -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 )
-                msleep( 5000 );
+            {
+#warning THERE IS A DEFINITELY BUG! LOCKING IS INSUFFICIENT!
+                msleep( 10000 );
+                barrier ();
+            }
         }
     }
 




More information about the vlc-devel mailing list