parent
799279afcd
commit
54a79f0665
|
@ -142,7 +142,7 @@ void Mpris1Root::Quit() {
|
|||
}
|
||||
|
||||
void Mpris1Player::Pause() {
|
||||
player_->Pause();
|
||||
player_->PlayPause();
|
||||
}
|
||||
|
||||
void Mpris1Player::Stop() {
|
||||
|
|
|
@ -381,16 +381,7 @@ void Player::Mute() {
|
|||
}
|
||||
|
||||
void Player::Pause() {
|
||||
switch (GetState()) {
|
||||
case Engine::Playing:
|
||||
engine_->Pause();
|
||||
break;
|
||||
case Engine::Paused:
|
||||
engine_->Unpause();
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
engine_->Pause();
|
||||
}
|
||||
|
||||
void Player::Play() {
|
||||
|
|
Loading…
Reference in New Issue