Skip to content

Commit

Permalink
VideoPlayer: fix detection of stalled audio
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Jan 17, 2016
1 parent 7ce4648 commit 4702503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/VideoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ void CVideoPlayer::HandlePlaySpeed()
{
if (m_pInputStream->IsRealtime())
{
if ((m_CurrentAudio.id >= 0 && m_CurrentAudio.syncState == IDVDStreamPlayer::SYNC_INSYNC && m_VideoPlayerAudio->GetLevel() == 0) ||
if ((m_CurrentAudio.id >= 0 && m_CurrentAudio.syncState == IDVDStreamPlayer::SYNC_INSYNC && m_VideoPlayerAudio->IsStalled()) ||
(m_CurrentVideo.id >= 0 && m_CurrentVideo.syncState == IDVDStreamPlayer::SYNC_INSYNC && m_VideoPlayerVideo->GetLevel() == 0))
{
CLog::Log(LOGDEBUG, "Stream stalled, start buffering. Audio: %d - Video: %d",
Expand Down

0 comments on commit 4702503

Please sign in to comment.