aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateContainer.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-19 19:57:27 +0100
committerMax Kellermann <max@duempel.org>2014-01-19 23:16:09 +0100
commit64465c1318e227ca625ee2047ec8b6a8f0c2faff (patch)
treecebe7785a4c50b698e29597eb28c70bcca5864ce /src/UpdateContainer.cxx
parenta506adea41e21e071ac3e88d69824d6dd3a3c925 (diff)
downloadmpd-64465c1318e227ca625ee2047ec8b6a8f0c2faff.tar.gz
mpd-64465c1318e227ca625ee2047ec8b6a8f0c2faff.tar.xz
mpd-64465c1318e227ca625ee2047ec8b6a8f0c2faff.zip
Song: make the "parent" attribute mandatory
The Song class is only used for database songs now. A Song without a Directory is not possible anymore.
Diffstat (limited to 'src/UpdateContainer.cxx')
-rw-r--r--src/UpdateContainer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UpdateContainer.cxx b/src/UpdateContainer.cxx
index 635006344..2323f69f6 100644
--- a/src/UpdateContainer.cxx
+++ b/src/UpdateContainer.cxx
@@ -102,7 +102,7 @@ update_container_file(Directory &directory,
unsigned int tnum = 0;
TagBuilder tag_builder;
while ((vtrack = plugin.container_scan(pathname.c_str(), ++tnum)) != nullptr) {
- Song *song = Song::NewFile(vtrack, contdir);
+ Song *song = Song::NewFile(vtrack, *contdir);
// shouldn't be necessary but it's there..
song->mtime = st->st_mtime;