From df001bf074ad3d9129b02ed8515813e93b129039 Mon Sep 17 00:00:00 2001 From: peak3d Date: Wed, 11 Sep 2019 17:18:17 +0200 Subject: [PATCH] [VideoPlayer] Stop WAITSYNC video if audio is in sync (analogous to audio) --- xbmc/cores/VideoPlayer/VideoPlayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index cda6afa47cff1..00c139e4d9d2e 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -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;