aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateRemove.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 22:42:05 +0100
committerMax Kellermann <max@duempel.org>2013-01-05 02:43:00 +0100
commitd536944beb783ec098aa6215fc94d8e60cfd310d (patch)
treeb86702e5d0142cfe3c8bb22a9a4f8ea2034cb51b /src/UpdateRemove.cxx
parent1a8ef3cdab39234e91fe9d91dad2ae004e4537dc (diff)
downloadmpd-d536944beb783ec098aa6215fc94d8e60cfd310d.tar.gz
mpd-d536944beb783ec098aa6215fc94d8e60cfd310d.tar.xz
mpd-d536944beb783ec098aa6215fc94d8e60cfd310d.zip
Partition: new class, container for Playlist and PlayerControl
This is the beginning of multi-player support. There will be support for multiple Partition objects in one MPD process.
Diffstat (limited to '')
-rw-r--r--src/UpdateRemove.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx
index 814c803b2..c1a0cd32b 100644
--- a/src/UpdateRemove.cxx
+++ b/src/UpdateRemove.cxx
@@ -20,6 +20,7 @@
#include "config.h" /* must be first for large file support */
#include "UpdateRemove.hxx"
#include "Playlist.hxx"
+#include "Partition.hxx"
extern "C" {
#include "event_pipe.h"
@@ -63,7 +64,9 @@ song_remove_event(void)
sticker_song_delete(removed_song);
#endif
- playlist_delete_song(&g_playlist, global_player_control, removed_song);
+ playlist_delete_song(&global_partition->playlist,
+ &global_partition->pc,
+ removed_song);
/* clear "removed_song" and send signal to update thread */
g_mutex_lock(remove_mutex);