aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:45:14 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:45:14 +0200
commite2c8b960de29e4fc45f16d980b9ef370de9951d3 (patch)
treebbe802c9efd9b677d91c9d7052382af147e5190f /src/main.c
parent5e51fa020dcf634d2c5442ed6c5de108420c7574 (diff)
downloadmpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.gz
mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.xz
mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.zip
moved code to pc_init(), dc_init()
Diffstat (limited to '')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 4e0079a85..54c2548b1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -25,7 +25,9 @@
#include "conf.h"
#include "path.h"
#include "playerData.h"
+#include "outputBuffer.h"
#include "decoder_thread.h"
+#include "decoder_control.h"
#include "player_control.h"
#include "stats.h"
#include "sig_handlers.h"
@@ -415,6 +417,9 @@ int main(int argc, char *argv[])
initCommands();
initPlayerData();
+ pc_init(buffered_before_play);
+ ob_init(buffered_chunks, &pc.notify);
+ dc_init();
initAudioConfig();
initAudioDriver();
initVolume();
@@ -464,6 +469,7 @@ int main(int argc, char *argv[])
finishPermissions();
finishCommands();
decoder_plugin_deinit_all();
+ ob_free();
cleanUpPidFile();
finishConf();