зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1683822 - Unregister the device changed callback before destroying an AudioCallbackDriver. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D101178
This commit is contained in:
Родитель
2400d86309
Коммит
a28db97351
|
@ -791,6 +791,9 @@ void AudioCallbackDriver::Shutdown() {
|
|||
LOG(LogLevel::Debug,
|
||||
("%p: Releasing audio driver off main thread (GraphDriver::Shutdown).",
|
||||
Graph()));
|
||||
|
||||
cubeb_stream_register_device_changed_callback(mAudioStream, nullptr);
|
||||
|
||||
RefPtr<AsyncCubebTask> releaseEvent =
|
||||
new AsyncCubebTask(this, AsyncCubebOperation::SHUTDOWN);
|
||||
releaseEvent->Dispatch(NS_DISPATCH_SYNC);
|
||||
|
|
Загрузка…
Ссылка в новой задаче