output/Thread: remove duplicate code by calling InternalCloseOutput()
This commit is contained in:
parent
7b2e3331f2
commit
5ad53a7554
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user