diff --git a/src/core/message.rs b/src/core/message.rs index 64c3f3c..c5a634e 100644 --- a/src/core/message.rs +++ b/src/core/message.rs @@ -78,7 +78,7 @@ pub enum PlayerCommand { ChangeScene(String), } -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct PlayerStatusData { pub running: bool, pub paused: bool, diff --git a/src/plugins/video/mod.rs b/src/plugins/video/mod.rs index b64e7b3..6e4e906 100644 --- a/src/plugins/video/mod.rs +++ b/src/plugins/video/mod.rs @@ -356,12 +356,7 @@ fn publish_state_changed( } fn status_changed(old: &PlayerStatusData, new: &PlayerStatusData) -> bool { - old.running != new.running - || old.paused != new.paused - || old.in_transition != new.in_transition - || old.current_index != new.current_index - || old.playlist_length != new.playlist_length - || old.current_video != new.current_video + old != new } fn lock_processor(