[vlc-devel] commit: Reduced sleep while waiting for a frame in	transcode. ( Laurent Aimar )
    git version control 
    git at videolan.org
       
    Sat Jun 13 13:25:49 CEST 2009
    
    
  
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jun 13 13:22:49 2009 +0200| [bc93cce1014ba37f8c08c556045971c28868a28c] | committer: Laurent Aimar 
Reduced sleep while waiting for a frame in transcode.
 It vastly improves CPU usage but it does not fix the underlaying problem
of using sleep instead of a signal.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc93cce1014ba37f8c08c556045971c28868a28c
---
 modules/stream_out/transcode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index d8eb8ca..79013d4 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -2091,7 +2091,7 @@ 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( 100000 );
+                msleep( 5000 );
         }
     }
 
    
    
More information about the vlc-devel
mailing list