summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Ralph <tralph@mythtv.org>2011-02-14 21:38:08 (GMT)
committer Taylor Ralph <tralph@mythtv.org>2011-02-14 21:38:08 (GMT)
commit99af9272d17e86cca73eb5c9701daa9f8e9254ce (patch)
tree11b03c40532b9d0414c9d58f7c6f919280d357a0
parent712bfd939030267395c5fc04d16a5fed3fdf30e6 (diff)
Use totalLength and framesPlayed to generate duration/position for nuv decoder.
Refs #9584.
-rw-r--r--mythtv/libs/libmythtv/mythplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 7d4ada7..7e885c4 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/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);