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}
This commit is contained in:
zijiehe 2017-03-15 15:52:20 -07:00 committed by Commit bot
parent bb511ef850
commit 299b67809a

View File

@ -128,7 +128,7 @@ class DxgiOutputDuplicator {
std::unique_ptr<SharedDesktopFrame> last_frame_;
DesktopVector last_frame_offset_;
int64_t num_frames_captured_;
int64_t num_frames_captured_ = 0;
};
} // namespace webrtc