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