diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-11-07 19:58:42 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-11-07 19:58:42 +0000 |
commit | 018de8438dab8997310b9622c1b168dfe78408fc (patch) | |
tree | 875e33a6c2e4fab9927c7ac34d03ed56742d0ab6 | |
parent | f5ebf4e81da70f0b0ae1605a2086f231168d81cc (diff) | |
download | mpv-018de8438dab8997310b9622c1b168dfe78408fc.tar.bz2 mpv-018de8438dab8997310b9622c1b168dfe78408fc.tar.xz |
fix insane CPU usage with ao_null
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13894 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |