output/multiple: add "client" field, replacing the "client" parameter

By eliminating GetAnyClient(), we can have instances with no outputs
at all.
This commit is contained in:
Max Kellermann
2020-01-20 14:51:06 +01:00
parent ff2e584bde
commit 4df98466df
5 changed files with 14 additions and 22 deletions

View File

@@ -106,8 +106,7 @@ handle_newpartition(Client &client, Request request, Response &response)
ReplayGainConfig());
auto &partition = instance.partitions.back();
partition.outputs.AddNullOutput(instance.io_thread.GetEventLoop(),
ReplayGainConfig(),
partition.pc);
ReplayGainConfig());
partition.UpdateEffectiveReplayGainMode();
instance.EmitIdle(IDLE_PARTITION);