diff options
author | Max Kellermann <max@duempel.org> | 2014-01-07 21:39:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-09 09:05:58 +0100 |
commit | 322b0616322760dc162447563d8f4da7e024ca90 (patch) | |
tree | 2f87cb3ce061556161797aba9f57ee08de5b9e21 /src/UpdateRemove.cxx | |
parent | 43847f2244a34064af24704aac4cfad4a3c76f7d (diff) | |
download | mpd-322b0616322760dc162447563d8f4da7e024ca90.tar.gz mpd-322b0616322760dc162447563d8f4da7e024ca90.tar.xz mpd-322b0616322760dc162447563d8f4da7e024ca90.zip |
DetachedSong: fork of struct Song
From now on, struct Song will be used by the database only, and
DetachedSong will be used by everybody else. DetachedSong is easier
to use, but Song has lower overhead.
Diffstat (limited to 'src/UpdateRemove.cxx')
-rw-r--r-- | src/UpdateRemove.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx index 91588330a..374a767b8 100644 --- a/src/UpdateRemove.cxx +++ b/src/UpdateRemove.cxx @@ -60,7 +60,10 @@ song_remove_event(void) sticker_song_delete(*removed_song); #endif - instance->DeleteSong(*removed_song); + { + const auto uri = removed_song->GetURI(); + instance->DeleteSong(uri.c_str()); + } /* clear "removed_song" and send signal to update thread */ remove_mutex.lock(); |