aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2015-04-14 14:38:41 +0200
committerRainer Hochecker <fernetmenta@online.de>2015-04-14 14:38:41 +0200
commit095d6a8f0f34658d86f935cb0b737cb7bc791a13 (patch)
tree2a817c10a2d7381faa5e347cbc53002bccc1fc7b
parent95d82bb8480b639428500575c699e68de27eebb3 (diff)
dvdplayer: compare to absolute sync error, fix sync issues for large negative errors
-rw-r--r--xbmc/cores/dvdplayer/DVDPlayerAudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp b/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
index 0d4834c554..a345a880ea 100644
--- a/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
+++ b/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
@@ -665,7 +665,7 @@ void CDVDPlayerAudio::HandleSyncError(double duration)
// as long as we are in sync mode, don't calculate the average
// error because drop/dupe changes the value
- if (m_syncclock && error > threshold1)
+ if (m_syncclock && fabs(error) > threshold1)
{
m_errors.Flush(500);
m_integral = 0.0;