[MPlayer-cvslog] CVS: main mplayer.c,1.807,1.808

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun Nov 7 20:58:46 CET 2004


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv1287

Modified Files:
	mplayer.c 
Log Message:
fix insane CPU usage with ao_null


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.807
retrieving revision 1.808
diff -u -r1.807 -r1.808
--- mplayer.c	5 Nov 2004 21:44:20 -0000	1.807
+++ mplayer.c	7 Nov 2004 19:58:42 -0000	1.808
@@ -2189,7 +2189,8 @@
   playsize=audio_out->get_space();
   
   // handle audio-only case:
-  if(!playsize && !sh_video) {  // buffer is full, do not block here!!!
+  if(playsize < ao_data.outburst &&
+      !sh_video) {  // buffer is full, do not block here!!!
     usec_sleep(10000); // Wait a tick before retry
     continue;
   }




More information about the MPlayer-cvslog mailing list