Fix a compiler warning in mpris1.cpp
This commit is contained in:
parent
e69970709e
commit
f416c27483
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue