summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-07 19:58:42 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-07 19:58:42 +0000
commit018de8438dab8997310b9622c1b168dfe78408fc (patch)
tree875e33a6c2e4fab9927c7ac34d03ed56742d0ab6 /mplayer.c
parentf5ebf4e81da70f0b0ae1605a2086f231168d81cc (diff)
downloadmpv-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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
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;
}