From 247ee232eef28626649004ba8a7c72b96ce116b3 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 14 Nov 2024 10:45:05 +0100 Subject: [PATCH] Update src/types/streams/streams_item.rs Co-authored-by: Lachezar Lechev <8925621+elpiel@users.noreply.github.com> --- src/types/streams/streams_item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/streams/streams_item.rs b/src/types/streams/streams_item.rs index b54526f6d..8853987f6 100644 --- a/src/types/streams/streams_item.rs +++ b/src/types/streams/streams_item.rs @@ -32,7 +32,7 @@ pub struct StreamItemState { /// In milliseconds #[serde(skip_serializing_if = "Option::is_none")] pub subtitle_delay: Option, - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub subtitle_size: Option, #[serde(skip_serializing_if = "Option::is_none")] pub subtitle_offset: Option,