summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Ralph <tralph@mythtv.org>2011-02-12 22:49:44 (GMT)
committer Taylor Ralph <tralph@mythtv.org>2011-02-12 22:49:44 (GMT)
commit98286fe22b363e1b37a5210eb62cb2858e01e0fb (patch)
tree6c06ecd42710c68dd84c2f418c7aa8fb8858bac0
parent618ac5634955218cace4fe256b3960583e99d9bc (diff)
Only need a video track for duration/position info so remove MHEG check.
Refs #9570.
-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 1a3864a..7d4ada7 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 || interactiveTV || noVideoTracks)
+ if (totalDuration == 0 || noVideoTracks)
playbackLen = totalLength;
if (livetv && player_ctx->tvchain)
@@ -4361,7 +4361,7 @@ void MythPlayer::calcSliderPos(osdInfo &info, bool paddedFields)
islive = true;
}
- float secsplayed = (interactiveTV || noVideoTracks) ?
+ float secsplayed = noVideoTracks ?
(float)(framesPlayed / video_frame_rate) :
(float)(disp_timecode / 1000.f);