Permalink
Browse files

Fix playback of a final cut region.

Regression introduced in 49dbed5.
  • Loading branch information...
1 parent befae78 commit c1adc3ef410695a0dd23ca20e814ad88d340e9d2 @stichnot stichnot committed Jan 4, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythtv/mythplayer.cpp
@@ -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);

0 comments on commit c1adc3e

Please sign in to comment.