fix(audio): no media player will be chosen unless paused or playing
This commit is contained in:
parent
bb788b45a4
commit
34c4bada71
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ async fn find_active(mut players: Vec<MediaPlayer>) -> Option<Player> {
|
||||||
match status {
|
match status {
|
||||||
Ok(mpris2_zbus::player::PlaybackStatus::Playing) => 100,
|
Ok(mpris2_zbus::player::PlaybackStatus::Playing) => 100,
|
||||||
Ok(mpris2_zbus::player::PlaybackStatus::Paused) => 10,
|
Ok(mpris2_zbus::player::PlaybackStatus::Paused) => 10,
|
||||||
_ => 0,
|
_ => return 0,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue