aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2015-02-20 17:09:07 +0100
committerRainer Hochecker <fernetmenta@online.de>2015-02-20 17:09:07 +0100
commiteaed3acfe5680eaa910a5f85d65bedc9a4536a60 (patch)
tree4433a9d0aabd944086428e69554aec4829235ce6
parent435c6c6f14e47c33f62b93f8736d8834714fa0c7 (diff)
dvdplayer: reset error integral when flushing sync errors
-rw-r--r--xbmc/cores/dvdplayer/DVDPlayerAudio.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp b/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
index 70f00328b2..4e77185eca 100644
--- a/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
+++ b/xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
@@ -657,6 +657,7 @@ void CDVDPlayerAudio::HandleSyncError(double duration)
{
m_syncclock = false;
m_errors.Flush();
+ m_integral = 0.0;
}
//check if measured error for 2 seconds