Fix a compiler warning in mpris1.cpp

This commit is contained in:
David Sansome 2011-03-29 19:05:04 +00:00
parent e69970709e
commit f416c27483
1 changed files with 5 additions and 4 deletions

View File

@ -180,16 +180,17 @@ DBusStatus Mpris1Player::GetStatus() const {
DBusStatus Mpris1Player::GetStatus(Engine::State state) const { DBusStatus Mpris1Player::GetStatus(Engine::State state) const {
DBusStatus status; DBusStatus status;
switch (state) { switch (state) {
case Engine::Empty:
case Engine::Idle:
status.play = DBusStatus::Mpris_Stopped;
break;
case Engine::Playing: case Engine::Playing:
status.play = DBusStatus::Mpris_Playing; status.play = DBusStatus::Mpris_Playing;
break; break;
case Engine::Paused: case Engine::Paused:
status.play = DBusStatus::Mpris_Paused; status.play = DBusStatus::Mpris_Paused;
break; break;
case Engine::Empty:
case Engine::Idle:
default:
status.play = DBusStatus::Mpris_Stopped;
break;
} }
PlaylistManagerInterface* playlists_ = player_->playlists(); PlaylistManagerInterface* playlists_ = player_->playlists();