Bug 1580659 - part6 : remove input config parameter from 'NotifyStartedPlaying()'. r=Ehsan
After applying patch4, now we would pull the change from `AudioChannelService` everytime after starting the agent, so we don't need to rely on letting `NotifyStartedPlaying()` to modify the config and use it to update our state. Differential Revision: https://phabricator.services.mozilla.com/D45753
This commit is contained in:
@@ -1187,9 +1187,8 @@ class HTMLMediaElement::AudioChannelAgentCallback final
|
||||
void StartAudioChannelAgent() {
|
||||
MOZ_ASSERT(mAudioChannelAgent);
|
||||
MOZ_ASSERT(!mAudioChannelAgent->IsPlayingStarted());
|
||||
AudioPlaybackConfig config;
|
||||
if (NS_WARN_IF(NS_FAILED(mAudioChannelAgent->NotifyStartedPlaying(
|
||||
&config, IsOwnerAudible())))) {
|
||||
if (NS_WARN_IF(NS_FAILED(
|
||||
mAudioChannelAgent->NotifyStartedPlaying(IsOwnerAudible())))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user