Index: webrtc/sdk/android/src/jni/peerconnection_jni.cc |
diff --git a/webrtc/sdk/android/src/jni/peerconnection_jni.cc b/webrtc/sdk/android/src/jni/peerconnection_jni.cc |
index 43daae126630da34d40d54f3734a8df360430bb8..2f42957d7aafd328a77c457e154f0719d6642e4c 100644 |
--- a/webrtc/sdk/android/src/jni/peerconnection_jni.cc |
+++ b/webrtc/sdk/android/src/jni/peerconnection_jni.cc |
@@ -1435,8 +1435,10 @@ JOW(jlong, PeerConnectionFactory_nativeCreateAudioSource)( |
new ConstraintsWrapper(jni, j_constraints)); |
rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
factoryFromJava(native_factory)); |
+ cricket::AudioOptions options; |
+ CopyConstraintsIntoAudioOptions(constraints.get(), &options); |
rtc::scoped_refptr<AudioSourceInterface> source( |
- factory->CreateAudioSource(constraints.get())); |
+ factory->CreateAudioSource(options)); |
return (jlong)source.release(); |
} |