commit ce5c1a0f6e335dab96179a39e986b63484248787
parent 7988aa91567244a30ad3ea88417b71973443083e
Author: Karl Tomlinson <karlt+@karlt.net>
Date: Wed, 8 Oct 2025 00:22:24 +0000
Bug 1992922 Move proxy fallback driver release comment to the associated code r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D267733
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dom/media/GraphDriver.cpp b/dom/media/GraphDriver.cpp
@@ -399,8 +399,6 @@ class AudioCallbackDriver::FallbackWrapper : public GraphInterface {
MOZ_ASSERT(result.IsStillProcessing() || result.IsStop() ||
result.IsSwitchDriver());
- // Proxy the release of the fallback driver to a background thread, so it
- // doesn't perform unexpected suicide.
IterationResult stopFallback =
IterationResult::CreateStop(NS_NewRunnableFunction(
"AudioCallbackDriver::FallbackDriverStopped",
@@ -433,6 +431,8 @@ class AudioCallbackDriver::FallbackWrapper : public GraphInterface {
}
}
mOwner = nullptr;
+ // Proxy the release of the fallback driver to a background
+ // thread, so it doesn't perform unexpected suicide.
NS_DispatchBackgroundTask(NS_NewRunnableFunction(
"AudioCallbackDriver::FallbackDriverStopped::Release",
[fallback = std::move(self->mFallbackDriver)] {}));