Fixes #994 - moveoutput: new AudioOutputControl created from copyMoving an output to a partition is now done via MultipleOutputs::AddCopy(),using a new AudioOutputControl constructor. Tags and always_on settings willpersist when moving outputs between partitions.

This commit is contained in:
Stapper
2020-11-13 17:35:36 +01:00
parent 60d19b2380
commit ba5531f9dd
6 changed files with 35 additions and 3 deletions

View File

@@ -183,9 +183,8 @@ handle_moveoutput(Client &client, Request request, Response &response)
existing_output->ReplaceDummy(output->Steal(),
was_enabled);
else
/* add it to the output list */
dest_partition.outputs.Add(output->Steal(),
was_enabled);
/* copy the AudioOutputControl and add it to the output list */
dest_partition.outputs.AddCopy(output,was_enabled);
instance.EmitIdle(IDLE_OUTPUT);
return CommandResult::OK;