diff --git a/src/types/streams/streams_item.rs b/src/types/streams/streams_item.rs index 643a21610..9975edf17 100644 --- a/src/types/streams/streams_item.rs +++ b/src/types/streams/streams_item.rs @@ -27,10 +27,10 @@ pub struct StreamsItem { #[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct StreamItemState { - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub subtitle_track: Option, /// In milliseconds - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub subtitle_delay: Option, #[serde(default, skip_serializing_if = "Option::is_none")] /// Subtitles size, platform dependent units @@ -38,14 +38,14 @@ pub struct StreamItemState { #[serde(default, skip_serializing_if = "Option::is_none")] /// Vertical offset of the subtitles, platform dependent units pub subtitle_offset: Option, - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub audio_track: Option, /// In milliseconds - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub audio_delay: Option, - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub playback_speed: Option, - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] pub player_type: Option, }