Bug 1447982 - Apply and update mic source settings on Reconfigure. r=padenot
authorAndreas Pehrson <pehrsons@mozilla.com>
Mon, 26 Mar 2018 11:05:52 +0200
changeset 781471 e87afd1fda355b3725496591ef30e63f25d5b968
parent 781470 5180d718e5a550bcf3939cd335a5b47514f9429d
child 781472 01a47840071be618d38929b923e391ab36cd6633
push id106312
push userhaftandilian@mozilla.com
push dateThu, 12 Apr 2018 23:43:57 +0000
reviewerspadenot
bugs1447982
milestone61.0a1
Bug 1447982 - Apply and update mic source settings on Reconfigure. r=padenot MozReview-Commit-ID: KKcRclPpCB2
dom/media/webrtc/MediaEngineWebRTCAudio.cpp
--- a/dom/media/webrtc/MediaEngineWebRTCAudio.cpp
+++ b/dom/media/webrtc/MediaEngineWebRTCAudio.cpp
@@ -243,16 +243,18 @@ MediaEngineWebRTCMicrophoneSource::Recon
     nsAutoCString name;
     GetErrorName(rv, name);
     LOG(("Mic source %p Reconfigure() failed unexpectedly. rv=%s",
          this, name.Data()));
     Stop(aHandle);
     return NS_ERROR_UNEXPECTED;
   }
 
+  ApplySettings(mLastPrefs);
+
   return NS_OK;
 }
 
 bool operator == (const MediaEnginePrefs& a, const MediaEnginePrefs& b)
 {
   return !memcmp(&a, &b, sizeof(MediaEnginePrefs));
 };