Always pause on --pause.

Fixes issue #1599
This commit is contained in:
John Maguire 2011-05-26 15:40:53 +00:00
parent 799279afcd
commit 54a79f0665
2 changed files with 2 additions and 11 deletions

View File

@ -142,7 +142,7 @@ void Mpris1Root::Quit() {
}
void Mpris1Player::Pause() {
player_->Pause();
player_->PlayPause();
}
void Mpris1Player::Stop() {

View File

@ -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() {