changeset 13893:9f1c3cf149fe

fix insane CPU usage with ao_null
author reimar
date Sun, 07 Nov 2004 19:58:42 +0000
parents 934721303a4b
children 7f22fdc992a4
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;
   }