Permalink
Browse files

Fix display of current position in an audio-only recording.

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 e658a84e9f8cf1e32a3f90cad84122f786d34009
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythtv/mythplayer.cpp
@@ -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();

0 comments on commit e658a84

Please sign in to comment.