command/partition: don't create null output in new partitions

No output at all is fine.  If the partition needs an output, it must
be moved there, but having just a null output isn't helpful.
This commit is contained in:
Max Kellermann
2020-01-20 14:54:21 +01:00
parent 4df98466df
commit 9cbfa66886
3 changed files with 0 additions and 20 deletions

View File

@@ -105,8 +105,6 @@ handle_newpartition(Client &client, Request request, Response &response)
AudioFormat::Undefined(),
ReplayGainConfig());
auto &partition = instance.partitions.back();
partition.outputs.AddNullOutput(instance.io_thread.GetEventLoop(),
ReplayGainConfig());
partition.UpdateEffectiveReplayGainMode();
instance.EmitIdle(IDLE_PARTITION);