Skip to content

Commit

Permalink
[dvdplayeraudio] Avoid busy spinning when queue is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Jan 10, 2016
1 parent 4bfe435 commit c700d5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
Expand Up @@ -511,6 +511,8 @@ void CVideoPlayerAudio::Process()
if (ALLOW_AUDIO(m_speed) && !m_stalled && m_syncState == IDVDStreamPlayer::SYNC_INSYNC)
{
m_stalled = true;
// avoid busy spinning here
Sleep(10);
}

continue;
Expand Down

0 comments on commit c700d5d

Please sign in to comment.