output/Thread: fix wrong error reference in catch clause

This commit is contained in:
Max Kellermann 2016-11-04 11:31:02 +01:00
parent 65e6755b8b
commit d6559e2ac9

View File

@ -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();