Skip to content

Commit

Permalink
Fix live TV sometimes pausing at channel changes.
Browse files Browse the repository at this point in the history
Regression introduced in 91ec76e and
related commits.
  • Loading branch information
stichnot committed Jan 14, 2013
1 parent fcf176d commit 47a2da4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -1189,7 +1189,11 @@ bool MythPlayer::HasReachedEof(void) const
return true;
if (GetEditMode())
return false;
return (framesPlayed >= deleteMap.GetLastFrame());
if (livetv)
return false;
if (framesPlayed >= deleteMap.GetLastFrame())
return true;
return false;
}

VideoFrame *MythPlayer::GetCurrentFrame(int &w, int &h)
Expand Down Expand Up @@ -3708,7 +3712,6 @@ bool MythPlayer::IsNearEnd(void)
margin = (long long) (margin * audio.GetStretchFactor());
bool watchingTV = IsWatchingInprogress();

framesRead = decoder->GetFramesRead();
framesRead = framesPlayed;

if (!player_ctx->IsPIP() &&
Expand Down

0 comments on commit 47a2da4

Please sign in to comment.