Skip to content

Commit

Permalink
Fix display of current position in an audio-only recording.
Browse files Browse the repository at this point in the history
Once the decoder drains, we fake-increment the frame count so the
current position looks reasonable in the OSD, rather than appearing to
stall.  Refs #11357.
  • Loading branch information
stichnot committed Jul 16, 2013
1 parent e98f79b commit e658a84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -2393,6 +2393,8 @@ bool MythPlayer::VideoLoop(void)

if (FlagIsSet(kVideoIsNull) && decoder)
decoder->UpdateFramesPlayed();
else if (decoder && decoder->GetEof() != kEofStateNone)
++framesPlayed;
else
framesPlayed = videoOutput->GetFramesPlayed();
return !IsErrored();
Expand Down

0 comments on commit e658a84

Please sign in to comment.