fix(audio): no media player will be chosen unless paused or playing

This commit is contained in:
Ashley Wulber 2024-02-15 19:04:32 -05:00 committed by Ashley Wulber
parent bb788b45a4
commit 34c4bada71

View file

@ -260,7 +260,7 @@ async fn find_active(mut players: Vec<MediaPlayer>) -> Option<Player> {
match status {
Ok(mpris2_zbus::player::PlaybackStatus::Playing) => 100,
Ok(mpris2_zbus::player::PlaybackStatus::Paused) => 10,
_ => 0,
_ => return 0,
}
};