output/MultipleOutputs: add method HasName()

This commit is contained in:
Max Kellermann
2019-09-26 14:40:19 +02:00
parent f2c3d86612
commit f616bfe354
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ MultipleOutputs::Configure(EventLoop &event_loop,
mixer_listener,
client, block, defaults,
&filter_factory);
if (FindByName(output->GetName()) != nullptr)
if (HasName(output->GetName()))
throw FormatRuntimeError("output devices with identical "
"names: %s", output->GetName());