Skip to content

Commit

Permalink
[VideoPlayer] Stop WAITSYNC video if audio is in sync (analogous to a…
Browse files Browse the repository at this point in the history
…udio)
  • Loading branch information
peak3d committed Sep 11, 2019
1 parent c38104d commit e000034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/VideoPlayer/VideoPlayer.cpp
Expand Up @@ -1919,7 +1919,8 @@ void CVideoPlayer::HandlePlaySpeed()
m_VideoPlayerAudio->SendMessage(new CDVDMsgDouble(CDVDMsg::GENERAL_RESYNC, m_clock.GetClock()), 1);
}
else if (m_CurrentVideo.syncState == IDVDStreamPlayer::SYNC_WAITSYNC &&
m_CurrentVideo.avsync == CCurrentStream::AV_SYNC_CONT)
(m_CurrentVideo.avsync == CCurrentStream::AV_SYNC_CONT ||
m_CurrentAudio.syncState == IDVDStreamPlayer::SYNC_INSYNC))
{
m_CurrentVideo.syncState = IDVDStreamPlayer::SYNC_INSYNC;
m_CurrentVideo.avsync = CCurrentStream::AV_SYNC_NONE;
Expand Down

0 comments on commit e000034

Please sign in to comment.