Index: webrtc/video_receive_stream.h |
diff --git a/webrtc/video_receive_stream.h b/webrtc/video_receive_stream.h |
index 0adcf3fc0d4cd3f499ae562dbd91ffbcfb03a21b..24b78174d862da071e786de521c4a3e83103831b 100644 |
--- a/webrtc/video_receive_stream.h |
+++ b/webrtc/video_receive_stream.h |
@@ -16,6 +16,7 @@ |
#include <string> |
#include <vector> |
+#include "webrtc/base/platform_file.h" |
#include "webrtc/common_types.h" |
#include "webrtc/common_video/include/frame_callback.h" |
#include "webrtc/config.h" |
@@ -208,6 +209,12 @@ class VideoReceiveStream { |
// TODO(pbos): Add info on currently-received codec to Stats. |
virtual Stats GetStats() const = 0; |
+ // Takes ownership of the file, is responsible for closing it later. |
+ // Calling this method will close and finalize any current log. |
+ // Giving rtc::kInvalidPlatformFileValue disables logging. |
+ virtual void SetLogFile( |
+ rtc::PlatformFile file = rtc::kInvalidPlatformFileValue) = 0; |
+ |
protected: |
virtual ~VideoReceiveStream() {} |
}; |