aboutsummaryrefslogtreecommitdiffstats
path: root/src/StateFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-03 22:25:54 +0100
committerMax Kellermann <max@duempel.org>2014-02-03 23:32:31 +0100
commit5ad2980d69409b5f307dcea57f2107bbcfcffc70 (patch)
tree7bfd99e03b333376f9eec5f2e07111e6d28ecd3e /src/StateFile.cxx
parentca36ac2ba196ee2bbe4b54ee9a71d49174803277 (diff)
downloadmpd-5ad2980d69409b5f307dcea57f2107bbcfcffc70.tar.gz
mpd-5ad2980d69409b5f307dcea57f2107bbcfcffc70.tar.xz
mpd-5ad2980d69409b5f307dcea57f2107bbcfcffc70.zip
QueueSave: use class SongLoader
Diffstat (limited to '')
-rw-r--r--src/StateFile.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx
index 7c0e24439..4d2813136 100644
--- a/src/StateFile.cxx
+++ b/src/StateFile.cxx
@@ -24,7 +24,7 @@
#include "fs/TextFile.hxx"
#include "Partition.hxx"
#include "mixer/Volume.hxx"
-
+#include "SongLoader.hxx"
#include "fs/FileSystem.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
@@ -97,11 +97,14 @@ StateFile::Read()
return;
}
+ const SongLoader song_loader(nullptr);
+
const char *line;
while ((line = file.ReadLine()) != NULL) {
success = read_sw_volume_state(line, partition.outputs) ||
audio_output_state_read(line, partition.outputs) ||
- playlist_state_restore(line, file, partition.playlist,
+ playlist_state_restore(line, file, song_loader,
+ partition.playlist,
partition.pc);
if (!success)
FormatError(state_file_domain,