# HG changeset patch # User reimar # Date 1099857522 0 # Node ID 9f1c3cf149fe420e1f3587a01cd390e54a016b41 # Parent 934721303a4b1f105789d21f2c4639a7021af4c2 fix insane CPU usage with ao_null diff -r 934721303a4b -r 9f1c3cf149fe mplayer.c --- 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; }