Skip to content

Commit

Permalink
Only need a video track for duration/position info so remove MHEG check.
Browse files Browse the repository at this point in the history
Refs #9570.
  • Loading branch information
tralph committed Feb 12, 2011
1 parent 618ac56 commit 98286fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -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)
Expand All @@ -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);

Expand Down

0 comments on commit 98286fe

Please sign in to comment.