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:52:40 (GMT)
commit3d55e51435bd58be91312a30453ee3cf588a9e3c (patch)
treea458ba5dc90b7ff7ca64d676ba947a305134a778
parent4a8c889f056a9a9d38e885dc10a3dd769e8da7c7 (diff)
Only need a video track for duration/position info so remove MHEG check.
Refs #9570. (cherry picked from commit 98286fe22b363e1b37a5210eb62cb2858e01e0fb)
-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 8cdd2e8..c1213df 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 || interactiveTV || noVideoTracks)
+ if (totalDuration == 0 || noVideoTracks)
playbackLen = totalLength;
if (livetv && player_ctx->tvchain)
@@ -4261,7 +4261,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);