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.
(cherry picked from commit 98286fe)
  • Loading branch information
tralph committed Feb 12, 2011
1 parent 4a8c889 commit 3d55e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -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)
Expand All @@ -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);

Expand Down

0 comments on commit 3d55e51

Please sign in to comment.