Skip to content

Commit

Permalink
paplayer: fixes for seeking ff/rw
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 20, 2013
1 parent b81e051 commit 0709147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/paplayer/PAPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ inline bool PAPlayer::ProcessStream(StreamInfo *si, double &delay, double &buffe
si->m_framesSent = (int)(si->m_seekFrame - ((float)si->m_startOffset * (float)si->m_sampleRate) / 1000.0f);
si->m_seekFrame = -1;
m_playerGUIData.m_time = time; //update for GUI
si->m_seekNextAtFrame = 0;
}
/* if its FF/RW */
else
Expand All @@ -720,7 +721,7 @@ inline bool PAPlayer::ProcessStream(StreamInfo *si, double &delay, double &buffe
if (time < si->m_startOffset || si->m_framesSent < 0)
{
time = si->m_startOffset;
si->m_framesSent = (int)(si->m_startOffset * si->m_sampleRate / 1000);
si->m_framesSent = 0;
si->m_seekNextAtFrame = 0;
ToFFRW(1);
}
Expand Down

0 comments on commit 0709147

Please sign in to comment.