Commit 5ad53a75 authored by Max Kellermann's avatar Max Kellermann

output/Thread: remove duplicate code by calling InternalCloseOutput()

parent 7b2e3331
......@@ -74,13 +74,7 @@ AudioOutputControl::InternalOpen2(const AudioFormat in_audio_format)
try {
output->ConfigureConvertFilter();
} catch (...) {
open = false;
{
const ScopeUnlock unlock(mutex);
output->CloseOutput(false);
}
InternalCloseOutput(false);
throw;
}
}
......
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