From 01e90073b52d24133bca7acf52177cdccf9be85c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 10 Feb 2026 18:30:17 +0100 Subject: [PATCH] videoplayer: do not end playback prematurely Previously it ended after all frames were decoded but not necessarily displayed. --- videoplayer/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.39.5