38d88816e3
Some constraints, like kEchoCancellation, kMediaStreamAudioDucking are supported in Chrome but not in Libjingle, if the users set it in mandatory, LocalAudioSource::Initialize() will fail the getUserMedia call. This patch fixes the problem by fully initializing the LocalAudioSource even though some constraints are not supported in libjingle. BUT=crbug/398080 TEST=manual test: var constraints = {audio: { mandatory: { googEchoCancellation: true } }}; getUserMedia(constraints, gotStream, gotStreamFailed); verify you get a gotStream callback R=henrika@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/21049004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6885 4adac7df-926f-26a2-2b94-8c16560cd09d