| Index: webrtc/logging/rtc_event_log/rtc_event_log.h
|
| diff --git a/webrtc/logging/rtc_event_log/rtc_event_log.h b/webrtc/logging/rtc_event_log/rtc_event_log.h
|
| index 3f96556d8a56c29905ac56b4417df204973f5d96..37bf203226be5df442321b5c0a0fe5882a97ba48 100644
|
| --- a/webrtc/logging/rtc_event_log/rtc_event_log.h
|
| +++ b/webrtc/logging/rtc_event_log/rtc_event_log.h
|
| @@ -15,6 +15,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "webrtc/base/logging.h"
|
| #include "webrtc/base/platform_file.h"
|
| #include "webrtc/call/audio_receive_stream.h"
|
| #include "webrtc/call/audio_send_stream.h"
|
| @@ -195,7 +196,13 @@ class RtcEventLogNullImpl final : public RtcEventLog {
|
| return false;
|
| }
|
| bool StartLogging(rtc::PlatformFile platform_file,
|
| - int64_t max_size_bytes) override;
|
| + int64_t max_size_bytes) override {
|
| + // The platform_file is open and needs to be closed.
|
| + if (!rtc::ClosePlatformFile(platform_file)) {
|
| + LOG(LS_ERROR) << "Can't close file.";
|
| + }
|
| + return false;
|
| + }
|
| void StopLogging() override {}
|
| void LogVideoReceiveStreamConfig(
|
| const rtclog::StreamConfig& config) override {}
|
|
|