aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;