Delete deprecated version of PeerConnectionFactoryInterface::StartAecDump

Bug: webrtc:6463
Change-Id: Ia60c34f7e1c9f3bb3f18417c7b621ba033e2ab5d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/141668
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28395}
This commit is contained in:
Niels Möller
2019-06-24 09:39:56 +02:00
committed by Commit Bot
parent bca1485a7a
commit e4ac723bdc
7 changed files with 12 additions and 27 deletions

View File

@ -310,12 +310,12 @@
RTCLogError(@"Aec dump already started.");
return NO;
}
int fd = open(filePath.UTF8String, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
if (fd < 0) {
RTCLogError(@"Error opening file: %@. Error: %d", filePath, errno);
FILE *f = fopen(filePath.UTF8String, "wb");
if (!f) {
RTCLogError(@"Error opening file: %@. Error: %s", filePath, strerror(errno));
return NO;
}
_hasStartedAecDump = _nativeFactory->StartAecDump(fd, maxSizeInBytes);
_hasStartedAecDump = _nativeFactory->StartAecDump(f, maxSizeInBytes);
return _hasStartedAecDump;
}