Skip to content

Commit

Permalink
Alter the watched flag fix slightly to take into account the need to …
Browse files Browse the repository at this point in the history
…ignore post-roll for recordings, something I forgot before.

(cherry picked from commit b758ea8)
  • Loading branch information
stuartm committed Feb 14, 2012
1 parent aac81b7 commit 074fb6e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -3057,10 +3057,13 @@ void MythPlayer::SetWatched(bool forceWatched)

long long numFrames = totalFrames;

// Handle in-progress recordings where totalFrames doesn't represent
// the full length of the recording
// For recordings we want to ignore the post-roll and account for
// in-progress recordings where totalFrames doesn't represent
// the full length of the recording. For videos we can only rely on
// totalFrames as duration metadata can be wrong
if (player_ctx->playingInfo->IsRecording() &&
player_ctx->playingInfo->GetRecordingStatus() == rsRecording)
player_ctx->playingInfo->QueryTranscodeStatus() !=
TRANSCODING_COMPLETE)
{
uint endtime;

Expand Down

0 comments on commit 074fb6e

Please sign in to comment.