From 467cac3c503887c4d6371ec5fdf1b23b3e0eb515 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 3 Aug 2024 21:02:46 +0200 Subject: [PATCH] fix inverted switch for `MpvExt::set_playback` --- src/highlevel_api_extension.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/highlevel_api_extension.rs b/src/highlevel_api_extension.rs index de760ab..badef0c 100644 --- a/src/highlevel_api_extension.rs +++ b/src/highlevel_api_extension.rs @@ -319,8 +319,8 @@ impl MpvExt for Mpv { async fn set_playback(&self, option: Switch) -> Result<(), MpvError> { let enabled = match option { - Switch::On => "yes", - Switch::Off => "no", + Switch::On => "no", + Switch::Off => "yes", Switch::Toggle => { if self.is_playing().await? { "no"