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