Skip to content

Commit

Permalink
dvdplayer: fix clockspeed adjust for non-resampling modes
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Jul 21, 2015
1 parent 99bb204 commit 3510570
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion xbmc/cores/dvdplayer/DVDClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ bool CDVDClock::Update(double clock, double absolute, double limit, const char*
double was_absolute = SystemToAbsolute(m_startClock);
double was_clock = m_iDisc + absolute - was_absolute;
lock.Leave();
if(std::abs(clock - was_clock) > limit)

double error = std::abs(clock - was_clock);

// skip minor updates while speed adjust is active
// -> adjusting buffer levels
if (m_speedAdjust != 0 && error < DVD_MSEC_TO_TIME(100))
{
return false;
}
else if (error > limit)
{
Discontinuity(clock, absolute);

Expand Down

0 comments on commit 3510570

Please sign in to comment.