From 932c6fa25f72dda5b4b8a1e1c2ff59a615ed86cf Mon Sep 17 00:00:00 2001 From: Felix Prillwitz Date: Thu, 12 Dec 2024 17:52:19 +0100 Subject: [PATCH] connect: always handle player seek event --- connect/src/spirc.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/connect/src/spirc.rs b/connect/src/spirc.rs index 1d7f7a63..5b6ff91b 100644 --- a/connect/src/spirc.rs +++ b/connect/src/spirc.rs @@ -607,9 +607,13 @@ impl SpircTask { trace!("==> Loading"); } }, + PlayerEvent::Seeked { position_ms, .. } => { + trace!("==> Seeked"); + self.connect_state + .update_position(position_ms, self.now_ms()) + } PlayerEvent::Playing { position_ms, .. } - | PlayerEvent::PositionCorrection { position_ms, .. } - | PlayerEvent::Seeked { position_ms, .. } => { + | PlayerEvent::PositionCorrection { position_ms, .. } => { trace!("==> Playing"); let new_nominal_start_time = self.now_ms() - position_ms as i64; match self.play_status {