Fix for the JNI interface of RtcEventLog functions.
BUG=webrtc:4741 Review-Url: https://codereview.webrtc.org/2128483002 Cr-Commit-Position: refs/heads/master@{#13393}
This commit is contained in:
@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user