Index: talk/app/webrtc/java/jni/peerconnection_jni.cc |
diff --git a/talk/app/webrtc/java/jni/peerconnection_jni.cc b/talk/app/webrtc/java/jni/peerconnection_jni.cc |
index 5b871d3cc865dd580b985c0ccf34a50d30121fdd..a554fa443d2014d1fe48167c51e18229eca1b966 100644 |
--- a/talk/app/webrtc/java/jni/peerconnection_jni.cc |
+++ b/talk/app/webrtc/java/jni/peerconnection_jni.cc |
@@ -1787,14 +1787,15 @@ JOW(void, PeerConnection_nativeRemoveLocalStream)( |
} |
JOW(jobject, PeerConnection_nativeCreateSender)( |
- JNIEnv* jni, jobject j_pc, jstring j_kind) { |
+ JNIEnv* jni, jobject j_pc, jstring j_kind, jstring j_stream_id) { |
jclass j_rtp_sender_class = FindClass(jni, "org/webrtc/RtpSender"); |
jmethodID j_rtp_sender_ctor = |
GetMethodID(jni, j_rtp_sender_class, "<init>", "(J)V"); |
std::string kind = JavaToStdString(jni, j_kind); |
+ std::string stream_id = JavaToStdString(jni, j_stream_id); |
rtc::scoped_refptr<RtpSenderInterface> sender = |
- ExtractNativePC(jni, j_pc)->CreateSender(kind); |
+ ExtractNativePC(jni, j_pc)->CreateSender(kind, stream_id); |
if (!sender.get()) { |
return nullptr; |
} |