Skip to content
Browse files

Only need a video track for duration/position info so remove MHEG check.

Refs #9570.
  • Loading branch information...
1 parent 618ac56 commit 98286fe22b363e1b37a5210eb62cb2858e01e0fb @tralph tralph committed Feb 12, 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 || 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);

0 comments on commit 98286fe

Please sign in to comment.
Something went wrong with that request. Please try again.