From 0b064d417951df4685eba8cc70a3d1df66334662 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 17 Jun 2023 16:06:32 +0200 Subject: [PATCH] videoplayer: set initial timestamp when available --- 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 0b4446d..08b43cb 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -672,7 +672,7 @@ impl Player { // play self.prefill(&mut dmx, &mut disp_q); - self.tkeep.reset_all(0); + self.tkeep.reset_all(if !disp_q.is_empty() { disp_q.first_ts } else { 0 }); if !self.paused { self.acontrol.resume(); } -- 2.39.5