From 6165171defeee4b6f405cb53bb4baf842ce37840 Mon Sep 17 00:00:00 2001 From: Leonhard Grote <9287612+schwubdiwub@users.noreply.github.com> Date: Sun, 8 Mar 2026 23:34:00 +0100 Subject: [PATCH] fix: parsing of SeekToCommand json with negative position values --- CHANGELOG.md | 1 + core/src/dealer/protocol/request.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0c418b6c..32059fe21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [main] Fixed `--volume-ctrl fixed` not disabling volume control - [core] Fix default permissions on credentials file and warn user if file is world readable - [core] Try all resolved addresses for the dealer connection instead of failing after the first one. +- [core] Allow parsing negative position values send in the `SeekToCommand` when seeking relative to current ## [0.8.0] - 2025-11-10 diff --git a/core/src/dealer/protocol/request.rs b/core/src/dealer/protocol/request.rs index 8125750c7..2f11ba041 100644 --- a/core/src/dealer/protocol/request.rs +++ b/core/src/dealer/protocol/request.rs @@ -108,7 +108,7 @@ pub struct PauseCommand { #[derive(Clone, Debug, Deserialize)] pub struct SeekToCommand { pub value: u32, - pub position: u32, + pub position: i32, pub logging_params: LoggingParams, }