From e78a0c0042ea20240adef7566676ddeec4c2fb88 Mon Sep 17 00:00:00 2001 From: David Engel Date: Fri, 4 Mar 2022 10:44:01 -0600 Subject: [PATCH] Fix playback hangs at end of file. Refs #511 (cherry picked from commit 4e35b3f712bd5dc79a99c9566e96103b88e9648d) --- mythtv/libs/libmythtv/mythplayer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp index 8f7ac450c67..6a9f0738ebd 100644 --- a/mythtv/libs/libmythtv/mythplayer.cpp +++ b/mythtv/libs/libmythtv/mythplayer.cpp @@ -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)