From: Kostya Shishkov Date: Tue, 10 Feb 2026 17:30:17 +0000 (+0100) Subject: videoplayer: do not end playback prematurely X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=01e90073b52d24133bca7acf52177cdccf9be85c;p=nihav-player.git videoplayer: do not end playback prematurely Previously it ended after all frames were decoded but not necessarily displayed. --- diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index 71cdf4b..8b1bbaa 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -1088,7 +1088,7 @@ impl Player { last_disp = Instant::now(); } let mut end = true; - if self.has_video && !self.vcontrol.is_video_end() { + if self.has_video && !(self.vcontrol.is_video_end() && disp_q.is_empty()) { end = false; } if self.has_audio && !self.acontrol.is_audio_end() {