Skip to content

Commit

Permalink
Merge pull request #732 from Stremio/fix-stream-state-adjust
Browse files Browse the repository at this point in the history
fix(stremio-core): do not pass delays when adjusting stream state to a non-related stream
  • Loading branch information
TheBeastLT authored Nov 7, 2024
2 parents f063177 + f0e7acc commit 03628c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types/streams/streams_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct StreamsItem {
/// StreamItemState is to be used when user intentionally changes some values from the defaults,
/// so that they would be persisted and restored when returning to the same stream,
/// or some of them reapplied when moving to the next video/stream.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct StreamItemState {
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -104,9 +104,9 @@ impl StreamsItem {
};
}
StreamItemState {
subtitle_track: None,
audio_track: None,
..state
playback_speed: state.playback_speed,
player_type: state.player_type,
..Default::default()
}
})
}
Expand Down

0 comments on commit 03628c6

Please sign in to comment.