From ddd36338da9f5e20dd88eb2b2276120f668d6b38 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 10:30:51 +0100 Subject: StateFile: pass Database to SongLoader Fixes loading database songs from state file (regression by commit 29072797c). --- src/StateFile.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/StateFile.cxx b/src/StateFile.cxx index 4d2813136..6c01be53c 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -25,6 +25,7 @@ #include "Partition.hxx" #include "mixer/Volume.hxx" #include "SongLoader.hxx" +#include "db/DatabaseGlue.hxx" #include "fs/FileSystem.hxx" #include "util/Domain.hxx" #include "Log.hxx" @@ -97,7 +98,7 @@ StateFile::Read() return; } - const SongLoader song_loader(nullptr); + const SongLoader song_loader(nullptr, GetDatabase()); const char *line; while ((line = file.ReadLine()) != NULL) { -- cgit v1.2.3