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:40:19 (GMT)
commit72b76bd406210922c004fa2e9c57ebbb75750226 (patch)
tree31655148feb5d457d3e2b38e18b85c4152208ef2
parentad3c81f086aafc32477163d7b40117aefac55d76 (diff)
Use totalLength and framesPlayed to generate duration/position for nuv decoder.
Refs #9584. (cherry picked from commit 99af9272d17e86cca73eb5c9701daa9f8e9254ce)
-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 c1213df..52bd5b3 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -4242,7 +4242,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)
@@ -4261,7 +4261,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);