Skip to content

Commit

Permalink
VideoPlayer: keep value of m_vSyncAdjust on Discontinuity
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Jun 7, 2016
1 parent 441a6d7 commit 539ae07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion xbmc/cores/VideoPlayer/DVDClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ void CDVDClock::Discontinuity(double clock, double absolute)
m_bReset = false;
m_systemAdjust = 0;
m_speedAdjust = 0;
m_vSyncAdjust = 0;
}

void CDVDClock::SetMaxSpeedAdjust(double speed)
Expand Down
4 changes: 4 additions & 0 deletions xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,10 @@ void CRenderManager::PrepareNextRender()
}
renderPts += frametime / 2 - m_clockSync.m_syncOffset;
}
else
{
m_dvdClock.SetVsyncAdjust(0);
}

if (renderPts >= nextFramePts)
{
Expand Down

0 comments on commit 539ae07

Please sign in to comment.