fix insane CPU usage with ao_null

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13894 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-11-07 19:58:42 +00:00
parent f5ebf4e81d
commit 018de8438d
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}