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

@@ -25,7 +25,6 @@
#include "IdleFlags.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
#include "player/Thread.hxx"
#include "util/CharUtil.hxx"
CommandResult
@@ -111,7 +110,7 @@ handle_newpartition(Client &client, Request request, Response &response)
ReplayGainConfig(),
partition.pc);
partition.UpdateEffectiveReplayGainMode();
StartPlayerThread(partition.pc);
partition.pc.StartThread();
partition.pc.LockUpdateAudio();
instance.EmitIdle(IDLE_PARTITION);