diff --git a/src/plugins/mpris/mpris.cpp b/src/plugins/mpris/mpris.cpp index 46ba9db98..57c0372ab 100644 --- a/src/plugins/mpris/mpris.cpp +++ b/src/plugins/mpris/mpris.cpp @@ -2,6 +2,7 @@ #include "mpris.h" #include "dbus.h" #include +#include #include #include @@ -12,12 +13,7 @@ extern "C" { thread_local char localBuffer[4096]; static MPRISRemote remote; -struct sd_null_term_str { - const char* string; - const char* terminator; -}; - -static const std::map MPRISPropertyNames = +static const std::map> MPRISPropertyNames = {{MPRISProperty::Volume, {"Volume", NULL}}, {MPRISProperty::PlaybackStatus, {"PlaybackStatus", NULL}}, {MPRISProperty::LoopStatus, {"LoopStatus", NULL}},