-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION (275262@main): Unable to play games in PBS Kids Games app
https://bugs.webkit.org/show_bug.cgi?id=270284 rdar://123811318 Reviewed by Chris Dumez. The SharedAudioDestinationAdapter's configuration queue would become stuck, waiting on a semaphore which would never be triggered. This appears to be a latent bug in the RemoteAudioDestinationProxy/Manager, but one that has dire implications now that SharedAudioDestination depends on its Adapter's render() method being called. Rather than block on a Semaphore to ensure the Adapter is configured before calling the completion handlers, simply pass the completion handler into the Adapter's inner destination's start() or stop() methods. Only when the Adapter is already started (or when it's stopped and does not need to be restarted) should the completion handler get called explicitly. Now that blocking is not needed, neither is the Adapter's configuration queue; all the setup for configuration can happen on the main thread. * Source/WebCore/platform/audio/SharedAudioDestination.cpp: (WebCore::SharedAudioDestinationAdapter::protectedWorkBus): (WebCore::SharedAudioDestinationAdapter::~SharedAudioDestinationAdapter): (WebCore::SharedAudioDestinationAdapter::addRenderer): (WebCore::SharedAudioDestinationAdapter::removeRenderer): (WebCore::SharedAudioDestinationAdapter::configureRenderThread): (WebCore::SharedAudioDestinationAdapter::callAllConfigurationHandlers): (WebCore::SharedAudioDestinationAdapter::render): (WebCore::SharedAudioDestinationAdapter::protectedConfigurationQueue): Deleted. (WebCore::m_configurationSemaphore): Deleted. Canonical link: https://commits.webkit.org/275542@main
- Loading branch information
Showing
1 changed file
with
67 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters