diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-06-17 16:06:32 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-06-17 16:06:32 +0200 |
commit | 0b064d417951df4685eba8cc70a3d1df66334662 (patch) | |
tree | 03cf9cc40b2bf4543208ad415f2613937ead1307 | |
parent | 2425989e4ac447e52951c95fdd4c745c5267b2f2 (diff) | |
download | nihav-player-0b064d417951df4685eba8cc70a3d1df66334662.tar.gz |
videoplayer: set initial timestamp when available
-rw-r--r-- | videoplayer/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |