From 299b67809adb928d446440367ec16da865f64166 Mon Sep 17 00:00:00 2001 From: zijiehe Date: Wed, 15 Mar 2017 15:52:20 -0700 Subject: [PATCH] DxgiOutputDuplicator should initialize num_frames_captured_ Otherwise Check failed: !!last_frame_ == num_frames_captured_ > 0 (1 vs. 0) may be triggered. BUG=webrtc:7339 Review-Url: https://codereview.webrtc.org/2755493003 Cr-Commit-Position: refs/heads/master@{#17266} --- webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h index 5a7053ab25..2ac0a75eab 100644 --- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h +++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h @@ -128,7 +128,7 @@ class DxgiOutputDuplicator { std::unique_ptr last_frame_; DesktopVector last_frame_offset_; - int64_t num_frames_captured_; + int64_t num_frames_captured_ = 0; }; } // namespace webrtc