decoder/Thread: move decoder_thread_start() into DecoderControl

This commit is contained in:
Max Kellermann
2018-09-21 16:57:54 +02:00
parent af64bd5088
commit 218d9383d7
5 changed files with 10 additions and 41 deletions

View File

@@ -21,7 +21,6 @@
#include "Thread.hxx"
#include "Outputs.hxx"
#include "Listener.hxx"
#include "decoder/DecoderThread.hxx"
#include "decoder/DecoderControl.hxx"
#include "MusicPipe.hxx"
#include "MusicBuffer.hxx"
@@ -1089,7 +1088,7 @@ PlayerControl::RunThread() noexcept
DecoderControl dc(mutex, cond,
configured_audio_format,
replay_gain_config);
decoder_thread_start(dc);
dc.StartThread();
MusicBuffer buffer(buffer_chunks);