Browse files

Use totalLength and framesPlayed to generate duration/position for nu…

…v decoder.

Refs #9584.
  • Loading branch information...
1 parent 712bfd9 commit 99af9272d17e86cca73eb5c9701daa9f8e9254ce @tralph tralph committed Feb 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/mythplayer.cpp
View
4 mythtv/libs/libmythtv/mythplayer.cpp
@@ -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)
@@ -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);

0 comments on commit 99af927

Please sign in to comment.