diff options
Diffstat (limited to 'src/Partition.cxx')
-rw-r--r-- | src/Partition.cxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx index 55750cfad..4d4504338 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2013 The Music Player Daemon Project + * Copyright (C) 2003-2014 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -19,21 +19,26 @@ #include "config.h" #include "Partition.hxx" -#include "Song.hxx" +#include "DetachedSong.hxx" +#include "output/MultipleOutputs.hxx" + +#ifdef ENABLE_DATABASE void -Partition::DatabaseModified() +Partition::DatabaseModified(const Database &db) { - playlist.DatabaseModified(); + playlist.DatabaseModified(db); } +#endif + void Partition::TagModified() { - Song *song = pc.LockReadTaggedSong(); + DetachedSong *song = pc.LockReadTaggedSong(); if (song != nullptr) { playlist.TagModified(std::move(*song)); - song->Free(); + delete song; } } |