summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2023-06-17 16:06:32 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2023-06-17 16:06:32 +0200
commit0b064d417951df4685eba8cc70a3d1df66334662 (patch)
tree03cf9cc40b2bf4543208ad415f2613937ead1307
parent2425989e4ac447e52951c95fdd4c745c5267b2f2 (diff)
downloadnihav-player-0b064d417951df4685eba8cc70a3d1df66334662.tar.gz
videoplayer: set initial timestamp when available
-rw-r--r--videoplayer/src/main.rs2
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();
}