diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2015-05-01 10:50:50 +0200 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2015-05-01 10:50:50 +0200 |
commit | f1dec790b9d3a965748e721f5035c3845287e62f (patch) | |
tree | 108e8c29f0b98442be9038c4f13855e9c3e7d491 | |
parent | 897654b9408e3aadab99daf7e2b8e3cb88cf608f (diff) |
dvdplayer: cap error window when going ff
-rw-r--r-- | xbmc/cores/dvdplayer/DVDPlayer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDPlayer.cpp b/xbmc/cores/dvdplayer/DVDPlayer.cpp index 0b946b0a03..c08820502f 100644 --- a/xbmc/cores/dvdplayer/DVDPlayer.cpp +++ b/xbmc/cores/dvdplayer/DVDPlayer.cpp @@ -1840,7 +1840,10 @@ void CDVDPlayer::HandlePlaySpeed() // the the bigger is the error we allow if (m_playSpeed > DVD_PLAYSPEED_NORMAL) { - error /= m_playSpeed / DVD_PLAYSPEED_NORMAL; + int errorwin = m_playSpeed / DVD_PLAYSPEED_NORMAL; + if (errorwin > 8) + errorwin = 8; + error /= errorwin; } if(error > DVD_MSEC_TO_TIME(1000)) |