mpd: Item: do not wrap Song in shared_ptr

This commit is contained in:
Andrzej Rybczak
2014-11-01 22:37:21 +01:00
parent 42bba40baf
commit 9a1afece86
6 changed files with 26 additions and 24 deletions

View File

@@ -691,7 +691,7 @@ void Connection::GetDirectory(const std::string &directory, ItemConsumer f)
it.type = itDirectory;
break;
case MPD_ENTITY_TYPE_SONG:
it.song = std::make_shared<Song>(Song(mpd_song_dup(mpd_entity_get_song(item))));
it.song = Song(mpd_song_dup(mpd_entity_get_song(item)));
it.type = itSong;
break;
case MPD_ENTITY_TYPE_PLAYLIST: