aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 95e32c2d5..77591a35f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -358,6 +358,8 @@ static void startMainProcess(void)
/* we're killed */
playerKill();
+ finishPlaylist();
+
finishAudioConfig();
finishAudioDriver();
@@ -546,12 +548,13 @@ int main(int argc, char *argv[])
initPlayerData();
- daemonize(&options);
-
initInputPlugins();
initPaths();
initAudioConfig();
initAudioDriver();
+ initPlaylist();
+
+ daemonize(&options);
initSigHandlers();
setupLogOutput(&options, out, err);
@@ -562,8 +565,6 @@ int main(int argc, char *argv[])
initPermissions();
- initPlaylist();
-
openDB(&options, argv[0]);
initCommands();