Skip to content

Commit

Permalink
Let Rewind jump back and then show forward frames - better than stall…
Browse files Browse the repository at this point in the history
…ing and potentially blanking
  • Loading branch information
cpm-code committed Dec 9, 2024
1 parent a60f740 commit 26e3b37
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,28 +972,6 @@ CVideoPlayerVideo::EOutputState CVideoPlayerVideo::OutputPicture(const VideoPict

iPlayingClock = m_pClock->GetClock(iCurrentClock, false); // snapshot current clock

if (m_speed < 0)
{
double renderPts;
int queued, discard;
int lateframes;
double inputPts = m_droppingStats.m_lastPts;
m_renderManager.GetStats(lateframes, renderPts, queued, discard);
if (pPicture->pts > renderPts || queued > 0)
{
if (inputPts >= renderPts)
{
m_rewindStalled = true;
CThread::Sleep(50ms);
}
return OUTPUT_DROPPED;
}
else if (pPicture->pts < iPlayingClock)
{
return OUTPUT_DROPPED;
}
}

if ((pPicture->iFlags & DVP_FLAG_DROPPED))
{
m_droppingStats.AddOutputDropGain(pPicture->pts, 1);
Expand Down

0 comments on commit 26e3b37

Please sign in to comment.