зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503536 - Call ApplySettings in MediaEngineWebRTCMicrophoneSource::Start. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D10347 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
5d6e408a75
Коммит
44be778ba3
|
@ -203,6 +203,8 @@ MediaEngineWebRTCMicrophoneSource::Reconfigure(
|
|||
|
||||
ApplySettings(outputPrefs);
|
||||
|
||||
mCurrentPrefs = outputPrefs;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -496,6 +498,8 @@ MediaEngineWebRTCMicrophoneSource::Allocate(
|
|||
return NS_OK;
|
||||
}));
|
||||
|
||||
mCurrentPrefs = outputPrefs;
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -671,6 +675,8 @@ MediaEngineWebRTCMicrophoneSource::Start(const RefPtr<const AllocationHandle>&)
|
|||
return NS_OK;
|
||||
}));
|
||||
|
||||
ApplySettings(mCurrentPrefs);
|
||||
|
||||
MOZ_ASSERT(mState != kReleased);
|
||||
mState = kStarted;
|
||||
|
||||
|
|
|
@ -136,6 +136,9 @@ private:
|
|||
// Current state of the resource for this source.
|
||||
MediaEngineSourceState mState;
|
||||
|
||||
// The current preferences for the APM's various processing stages.
|
||||
MediaEnginePrefs mCurrentPrefs;
|
||||
|
||||
// The SourecMediaStream on which to append data for this microphone. Set in
|
||||
// SetTrack as part of the initialization, and nulled in ::Deallocate.
|
||||
RefPtr<SourceMediaStream> mStream;
|
||||
|
|
Загрузка…
Ссылка в новой задаче