diff options
author | Max Kellermann <max@duempel.org> | 2014-01-28 11:39:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-29 08:10:46 +0100 |
commit | 4657a3bd0fd97583e23cd65b80db71a71345fc13 (patch) | |
tree | c0aed4a1e4ef57d4686b400efd17069e2bf9958c /src/output/OutputThread.cxx | |
parent | cb7366f47245bf259cef0b8c863eb3b724cff683 (diff) | |
download | mpd-4657a3bd0fd97583e23cd65b80db71a71345fc13.tar.gz mpd-4657a3bd0fd97583e23cd65b80db71a71345fc13.tar.xz mpd-4657a3bd0fd97583e23cd65b80db71a71345fc13.zip |
output: move functions into the AudioOutput struct
Diffstat (limited to '')
-rw-r--r-- | src/output/OutputThread.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output/OutputThread.cxx b/src/output/OutputThread.cxx index 95702d183..fcbd22c6a 100644 --- a/src/output/OutputThread.cxx +++ b/src/output/OutputThread.cxx @@ -18,7 +18,6 @@ */ #include "config.h" -#include "OutputThread.hxx" #include "Internal.hxx" #include "OutputAPI.hxx" #include "Domain.hxx" @@ -680,11 +679,12 @@ audio_output_task(void *arg) } } -void audio_output_thread_start(AudioOutput *ao) +void +AudioOutput::StartThread() { - assert(ao->command == AO_COMMAND_NONE); + assert(command == AO_COMMAND_NONE); Error error; - if (!ao->thread.Start(audio_output_task, ao, error)) + if (!thread.Start(audio_output_task, this, error)) FatalError(error); } |