player/Thread: move StartPlayerThread() into PlayerControl

This commit is contained in:
Max Kellermann
2018-09-21 17:14:19 +02:00
parent 0e2c597884
commit 6db6d3c50c
6 changed files with 28 additions and 60 deletions

View File

@@ -24,7 +24,6 @@
#include "PlaylistFile.hxx"
#include "MusicChunk.hxx"
#include "StateFile.hxx"
#include "player/Thread.hxx"
#include "Mapper.hxx"
#include "Permission.hxx"
#include "Listen.hxx"
@@ -613,7 +612,7 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
ZeroconfInit(raw_config, instance->event_loop);
for (auto &partition : instance->partitions)
StartPlayerThread(partition.pc);
partition.pc.StartThread();
#ifdef ENABLE_DATABASE
if (create_db) {