diff options
author | Max Kellermann <max@musicpd.org> | 2017-02-09 21:33:49 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-02-09 21:33:49 +0100 |
commit | 853740f1e24a9b2e843653ee1aa48633f9d6fcb9 (patch) | |
tree | b1a49eabb48535c852f93b37aa37fb477debc293 /src/Main.cxx | |
parent | 14986b153a0480aa3facceb3a1b94d946ef0a928 (diff) |
Main: use the IOThread for outputs and mixers
The main EventLoop can block for a long time while a client's command
runs, and is therefore inappropriate for internal engine I/O. This
fixes a serious regression for at least the "httpd" output, which used
to be hard-coded for the IOThread, but now receives the main EventLoop
as an initialization parameter.
For the mixers, this doesn't make much of a difference. They are not
latency critical.
Diffstat (limited to 'src/Main.cxx')
-rw-r--r-- | src/Main.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index eb9e65300..3eec3b7cd 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -519,7 +519,7 @@ try { command_init(); - instance->partition->outputs.Configure(instance->event_loop, + instance->partition->outputs.Configure(io_thread_get(), config.replay_gain, instance->partition->pc); instance->partition->UpdateEffectiveReplayGainMode(); |