Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: webrtc/api/android/java/src/org/webrtc/PeerConnection.java

Issue 2128483002: Fix for the JNI interface of RtcEventLog functions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/api/android/jni/peerconnection_jni.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/android/java/src/org/webrtc/PeerConnection.java
diff --git a/webrtc/api/android/java/src/org/webrtc/PeerConnection.java b/webrtc/api/android/java/src/org/webrtc/PeerConnection.java
index 965cea4fd2fb6da04930b5d06dfc696272e97cde..3f7952e4728a30b279543ef10024ae97691361f4 100644
--- a/webrtc/api/android/java/src/org/webrtc/PeerConnection.java
+++ b/webrtc/api/android/java/src/org/webrtc/PeerConnection.java
@@ -262,16 +262,14 @@ public class PeerConnection {
// stopped and a new one will start using the provided file. Logging will
// continue until the stopRtcEventLog function is called. The max_size_bytes
// argument is ignored, it is added for future use.
- public boolean startRtcEventLog(
- int file_descriptor, long max_size_bytes) {
- return nativeStartRtcEventLog(
- nativePeerConnection, file_descriptor, max_size_bytes);
+ public boolean startRtcEventLog(int file_descriptor, int max_size_bytes) {
+ return nativeStartRtcEventLog(file_descriptor, max_size_bytes);
}
// Stops recording an RTC event log. If no RTC event log is currently being
// recorded, this call will have no effect.
public void stopRtcEventLog() {
- nativeStopRtcEventLog(nativePeerConnection);
+ nativeStopRtcEventLog();
}
// TODO(fischman): add support for DTMF-related methods once that API
@@ -325,9 +323,9 @@ public class PeerConnection {
private native List<RtpReceiver> nativeGetReceivers();
- private static native boolean nativeStartRtcEventLog(
- long nativePeerConnection, int file_descriptor, long max_size_bytes);
+ private native boolean nativeStartRtcEventLog(
+ int file_descriptor, int max_size_bytes);
- private static native void nativeStopRtcEventLog(long nativePeerConnection);
+ private native void nativeStopRtcEventLog();
}
« no previous file with comments | « no previous file | webrtc/api/android/jni/peerconnection_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698