Skip to content
Permalink
Browse files

VideoPlayer: coding style fixes

  • Loading branch information...
FernetMenta authored and popcornmix committed Sep 28, 2016
1 parent 18449f5 commit a165e9c3910185689b55ad52f13f1f3161d700e4
Showing with 9 additions and 7 deletions.
  1. +9 −7 xbmc/cores/VideoPlayer/VideoPlayer.cpp
@@ -2786,16 +2786,18 @@ void CVideoPlayer::HandleMessages()
int speed = static_cast<CDVDMsgInt*>(pMsg)->m_value;

// correct our current clock, as it would start going wrong otherwise
if(m_State.timestamp > 0)
if (m_State.timestamp > 0)
{
double offset;
offset = m_clock.GetAbsoluteClock() - m_State.timestamp;
offset = m_clock.GetAbsoluteClock() - m_State.timestamp;
offset *= m_playSpeed / DVD_PLAYSPEED_NORMAL;
offset = DVD_TIME_TO_MSEC(offset);
if(offset > 1000) offset = 1000;
if(offset < -1000) offset = -1000;
m_State.time += offset;
m_State.timestamp = m_clock.GetAbsoluteClock();
offset = DVD_TIME_TO_MSEC(offset);
if (offset > 1000)
offset = 1000;
if (offset < -1000)
offset = -1000;
m_State.time += offset;
m_State.timestamp = m_clock.GetAbsoluteClock();
}

if (speed != DVD_PLAYSPEED_PAUSE && m_playSpeed != DVD_PLAYSPEED_PAUSE && speed != m_playSpeed)

0 comments on commit a165e9c

Please sign in to comment.
You can’t perform that action at this time.