diff mplayer.c @ 13893:9f1c3cf149fe

fix insane CPU usage with ao_null
author reimar
date Sun, 07 Nov 2004 19:58:42 +0000
parents 8a928d5b42b8
children db2f1e657dfe
line wrap: on
line diff
--- a/mplayer.c	Sun Nov 07 18:28:51 2004 +0000
+++ b/mplayer.c	Sun Nov 07 19:58:42 2004 +0000
@@ -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;
   }