Bug 1829068 skip AudioSink initialization if there's another intialization pending...
commitb4f60f0d6acb2579237232f39486334b5a0c4a54
authorKarl Tomlinson <karlt+@karlt.net>
Tue, 27 Jun 2023 08:53:50 +0000 (27 08:53 +0000)
committerKarl Tomlinson <karlt+@karlt.net>
Tue, 27 Jun 2023 08:53:50 +0000 (27 08:53 +0000)
tree87a69d37a66e52afdf16f0fb018819ef40ca41c7
parentd7940eeeb59cac7eb60fa6a4c044d27ce7530803
Bug 1829068 skip AudioSink initialization if there's another intialization pending r=padenot

This restores similar skipping of unnecessary AudioSink initialization as was
implemented for device changes when they were handled by
MediaDecoderStateMachine.  This AudioSinkWrapper implementation also reduces
initializations if multiple mute/unmute cycles trigger excess initializations.

Depends on D181975

Differential Revision: https://phabricator.services.mozilla.com/D181976
dom/media/mediasink/AudioSinkWrapper.cpp
dom/media/mediasink/AudioSinkWrapper.h