Skip to content

Commit

Permalink
Fix playback hangs at end of file.
Browse files Browse the repository at this point in the history
Refs #511

(cherry picked from commit 4e35b3f)
  • Loading branch information
gigem committed Mar 4, 2022
1 parent 44a4527 commit e78a0c0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -833,15 +833,10 @@ bool MythPlayer::PrebufferEnoughFrames(int min_buffers)
return false;
}

// Make sure we have at least one frame available. The EOF case
// can get here without one.
if (!m_videoOutput->ValidVideoFrames())
return false;

if (!m_avSync.GetAVSyncAudioPause())
m_audio.Pause(false);
SetBuffering(false);
return true;
return m_videoOutput->ValidVideoFrames();
}

void MythPlayer::VideoEnd(void)
Expand Down

0 comments on commit e78a0c0

Please sign in to comment.