mirror of
https://github.com/mpv-player/mpv
synced 2025-03-18 17:40:30 +00:00
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:
parent
f5ebf4e81d
commit
018de8438d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user