Skip to content

Commit

Permalink
Search backwards for keyframe when resuming playback
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gamache committed Feb 20, 2017
1 parent 38ce480 commit 0d794b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/VideoPlayer/VideoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1323,15 +1323,15 @@ void CVideoPlayer::Process()
double startpts = DVD_NOPTS_VALUE;
if (m_pDemuxer)
{
if (m_pDemuxer->SeekTime(starttime, false, &startpts))
if (m_pDemuxer->SeekTime(starttime, true, &startpts))
CLog::Log(LOGDEBUG, "%s - starting demuxer from: %d", __FUNCTION__, starttime);
else
CLog::Log(LOGDEBUG, "%s - failed to start demuxing from: %d", __FUNCTION__, starttime);
}

if (m_pSubtitleDemuxer)
{
if(m_pSubtitleDemuxer->SeekTime(starttime, false, &startpts))
if(m_pSubtitleDemuxer->SeekTime(starttime, true, &startpts))
CLog::Log(LOGDEBUG, "%s - starting subtitle demuxer from: %d", __FUNCTION__, starttime);
else
CLog::Log(LOGDEBUG, "%s - failed to start subtitle demuxing from: %d", __FUNCTION__, starttime);
Expand Down

0 comments on commit 0d794b6

Please sign in to comment.