Skip to content

Commit

Permalink
Use totalLength and framesPlayed to generate duration/position for nu…
Browse files Browse the repository at this point in the history
…v decoder.

Refs #9584.
  • Loading branch information
tralph committed Feb 14, 2011
1 parent 712bfd9 commit 99af927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4342,7 +4342,7 @@ void MythPlayer::calcSliderPos(osdInfo &info, bool paddedFields)

int playbackLen = totalDuration;

if (totalDuration == 0 || noVideoTracks)
if (totalDuration == 0 || noVideoTracks || decoder->GetCodecDecoderName() == "nuppel")
playbackLen = totalLength;

if (livetv && player_ctx->tvchain)
Expand All @@ -4361,7 +4361,7 @@ void MythPlayer::calcSliderPos(osdInfo &info, bool paddedFields)
islive = true;
}

float secsplayed = noVideoTracks ?
float secsplayed = (noVideoTracks || decoder->GetCodecDecoderName() == "nuppel") ?
(float)(framesPlayed / video_frame_rate) :
(float)(disp_timecode / 1000.f);

Expand Down

0 comments on commit 99af927

Please sign in to comment.