Delete obsolete RtcEventLogOutputFile constructor
Followup to https://webrtc-review.googlesource.com/c/src/+/134460. Bug: webrtc:6463 Change-Id: Ib6574b02b21fddc598c1f67c7e2b515f01d33204 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/139887 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28206}
This commit is contained in:
@ -750,8 +750,13 @@ static jboolean JNI_PeerConnection_StartRtcEventLog(
|
||||
const size_t max_size = (max_size_bytes < 0)
|
||||
? RtcEventLog::kUnlimitedOutput
|
||||
: rtc::saturated_cast<size_t>(max_size_bytes);
|
||||
FILE* f = fdopen(file_descriptor, "wb");
|
||||
if (!f) {
|
||||
close(file_descriptor);
|
||||
return false;
|
||||
}
|
||||
return ExtractNativePC(jni, j_pc)->StartRtcEventLog(
|
||||
absl::make_unique<RtcEventLogOutputFile>(file_descriptor, max_size));
|
||||
absl::make_unique<RtcEventLogOutputFile>(f, max_size));
|
||||
}
|
||||
|
||||
static void JNI_PeerConnection_StopRtcEventLog(
|
||||
|
||||
Reference in New Issue
Block a user