diff --git a/src/plugins/mpris/mpris.cpp b/src/plugins/mpris/mpris.cpp index 9741d946c..292193320 100644 --- a/src/plugins/mpris/mpris.cpp +++ b/src/plugins/mpris/mpris.cpp @@ -324,3 +324,18 @@ void MPRISRemote::MPRISSetVolume(double vol) { playback->SetVolume(vol); } } + + +MPRISMetadataValues::MPRISMetadataValues() { + trackid = ""; + length = 0; + artist = ""; + title = ""; + album = ""; + albumArtist = ""; + genre = ""; + comment = ""; + trackNumber = 0; + discNumber = 0; + available = false; +} diff --git a/src/plugins/mpris/mpris.h b/src/plugins/mpris/mpris.h index c36fbad4a..08e981b8d 100644 --- a/src/plugins/mpris/mpris.h +++ b/src/plugins/mpris/mpris.h @@ -34,20 +34,7 @@ struct MPRISMetadataValues { uint32_t trackNumber; uint32_t discNumber; bool available; - - MPRISMetadataValues() { - trackid = ""; - length = 0; - artist = ""; - title = ""; - album = ""; - albumArtist = ""; - genre = ""; - comment = ""; - trackNumber = 0; - discNumber = 0; - available = false; - } + MPRISMetadataValues(); }; class MPRISRemote : public IPlaybackRemote {