Fix aecdumps in AppRTC on Android.
This CL fixes an issue where the aecdump file handle gets garbage collected and closed early in the call. Bug: webrtc:8822 Change-Id: I959908da164b0ec61ccd976fc52f3d919da11b52 Reviewed-on: https://webrtc-review.googlesource.com/46103 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Gustaf Ullberg <gustaf@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21839}
This commit is contained in:
committed by
Commit Bot
parent
956b3068ba
commit
06c944f035
@ -659,7 +659,7 @@ public class PeerConnectionClient {
|
||||
+ File.separator + "Download/audio.aecdump"),
|
||||
ParcelFileDescriptor.MODE_READ_WRITE | ParcelFileDescriptor.MODE_CREATE
|
||||
| ParcelFileDescriptor.MODE_TRUNCATE);
|
||||
factory.startAecDump(aecDumpFileDescriptor.getFd(), -1);
|
||||
factory.startAecDump(aecDumpFileDescriptor.detachFd(), -1);
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "Can not open aecdump file", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user