Skip to content

Commit

Permalink
Fix playback of a final cut region.
Browse files Browse the repository at this point in the history
Regression introduced in 49dbed5.
  • Loading branch information
stichnot committed Jan 4, 2013
1 parent befae78 commit c1adc3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -3691,6 +3691,8 @@ bool MythPlayer::IsNearEnd(void)
if (!player_ctx->IsPIP() &&
player_ctx->GetState() == kState_WatchingPreRecorded)
{
if (framesRead >= deleteMap.GetLastFrame())
return true;
uint64_t frameCount = GetCurrentFrameCount();
framesLeft = (frameCount > framesRead) ? frameCount - framesRead : 0;
return (framesLeft < (uint64_t)margin);
Expand Down

0 comments on commit c1adc3e

Please sign in to comment.