Commit d6559e2a authored by Max Kellermann's avatar Max Kellermann

output/Thread: fix wrong error reference in catch clause

parent 65e6755b
......@@ -182,7 +182,7 @@ AudioOutput::Open()
try {
success = ao_plugin_open(this, out_audio_format, error);
} catch (const std::runtime_error &e) {
FormatError(error, "Failed to open \"%s\" [%s]",
FormatError(e, "Failed to open \"%s\" [%s]",
name, plugin.name);
CloseFilter();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment