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:
Paul Adenot 2018-11-05 10:43:08 +00:00
Родитель 5d6e408a75
Коммит 44be778ba3
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -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;