diff options
author | Miguel Borges de Freitas <92enen@gmail.com> | 2024-02-11 10:46:07 +0000 |
---|---|---|
committer | Miguel Borges de Freitas <92enen@gmail.com> | 2024-02-11 19:38:27 +0000 |
commit | e86db05c3b1b8471d1f17c70f0b0a46bef88233c (patch) | |
tree | ff3a8cd3b99aebe9ec411b0579f3f1a96ac9606a | |
parent | 0a52609c11800e5ba71e7ec81dd5131123223968 (diff) |
VideoPlayer: Fix error window for tempo/fractional play speeds
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index ad1741751b..c93beaa6ac 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -2157,9 +2157,9 @@ void CVideoPlayer::HandlePlaySpeed() // the the bigger is the error we allow if (m_playSpeed > DVD_PLAYSPEED_NORMAL) { - int errorwin = m_playSpeed / DVD_PLAYSPEED_NORMAL; - if (errorwin > 8) - errorwin = 8; + double errorwin = static_cast<double>(m_playSpeed) / DVD_PLAYSPEED_NORMAL; + if (errorwin > 8.0) + errorwin = 8.0; error /= errorwin; } |