зеркало из https://github.com/mozilla/gecko-dev.git
Bug 805352 - Make cubeb_stream_destroy errors non-fatal in AudioUnit backend. r=doublec a=lsblakk
This commit is contained in:
Родитель
f373d154f6
Коммит
fd47e700ed
|
@ -7,3 +7,4 @@ The cubeb git repository is: git://github.com/kinetiknz/cubeb.git
|
|||
|
||||
The git commit ID used was 2d7d3e8f2ecabb70d2723f3c86fcb591a84b7f85.
|
||||
Plus the single commit f4c927fb1c2dc0a0580d0bca4bd267c34febada4.
|
||||
Plus the single commit e5837ecbb2389abd7e6635f4339878c5e4c1e1d5.
|
||||
|
|
|
@ -222,19 +222,14 @@ cubeb_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_n
|
|||
void
|
||||
cubeb_stream_destroy(cubeb_stream * stm)
|
||||
{
|
||||
OSStatus r;
|
||||
int r;
|
||||
|
||||
stm->shutdown = 1;
|
||||
|
||||
if (stm->unit) {
|
||||
r = AudioOutputUnitStop(stm->unit);
|
||||
assert(r == 0);
|
||||
|
||||
r = AudioUnitUninitialize(stm->unit);
|
||||
assert(r == 0);
|
||||
|
||||
r = CloseComponent(stm->unit);
|
||||
assert(r == 0);
|
||||
AudioOutputUnitStop(stm->unit);
|
||||
AudioUnitUninitialize(stm->unit);
|
||||
CloseComponent(stm->unit);
|
||||
}
|
||||
|
||||
r = pthread_mutex_destroy(&stm->mutex);
|
||||
|
|
Загрузка…
Ссылка в новой задаче