Skip to content

Commit

Permalink
dvdplayer: flush audio errors on large sync error
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Feb 25, 2015
1 parent 550f3b0 commit cec0fb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ void CDVDPlayerAudio::HandleSyncError(double duration)
if (fabs(error) > DVD_MSEC_TO_TIME(100))
{
m_syncclock = true;
m_errors.Flush();
m_integral = 0.0;
return;
}
else if (m_syncclock && fabs(error) < DVD_MSEC_TO_TIME(50))
Expand Down

0 comments on commit cec0fb4

Please sign in to comment.