Qt: Fix bounded sync when sync to video is enabled

This commit is contained in:
Vicki Pfau 2022-07-03 06:23:32 -07:00
parent c11392e77a
commit 9bcfd248e9
1 changed files with 3 additions and 6 deletions

View File

@ -1238,24 +1238,21 @@ void CoreController::updateFastForward() {
if (m_fastForwardMute >= 0) { if (m_fastForwardMute >= 0) {
m_threadContext.core->opts.mute = m_fastForwardMute || m_mute; m_threadContext.core->opts.mute = m_fastForwardMute || m_mute;
} }
setSync(false);
// If we aren't holding the fast forward button // If we aren't holding the fast forward button
// then use the non "(held)" ratio // then use the non "(held)" ratio
if(!m_fastForward) { if(!m_fastForward) {
if (m_fastForwardRatio > 0) { if (m_fastForwardRatio > 0) {
m_threadContext.impl->sync.fpsTarget = m_fpsTarget * m_fastForwardRatio; m_threadContext.impl->sync.fpsTarget = m_fpsTarget * m_fastForwardRatio;
setSync(true); m_threadContext.impl->sync.audioWait = true;
} else {
setSync(false);
} }
} else { } else {
// If we are holding the fast forward button, // If we are holding the fast forward button,
// then use the held ratio // then use the held ratio
if (m_fastForwardHeldRatio > 0) { if (m_fastForwardHeldRatio > 0) {
m_threadContext.impl->sync.fpsTarget = m_fpsTarget * m_fastForwardHeldRatio; m_threadContext.impl->sync.fpsTarget = m_fpsTarget * m_fastForwardHeldRatio;
setSync(true); m_threadContext.impl->sync.audioWait = true;
} else {
setSync(false);
} }
} }
} else { } else {