From 018de8438dab8997310b9622c1b168dfe78408fc Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 7 Nov 2004 19:58:42 +0000 Subject: fix insane CPU usage with ao_null git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13894 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 288da019c0..4bc4ec6c73 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2189,7 +2189,8 @@ while(sh_audio){ 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; } -- cgit v1.2.3