Check that stats_proxy_ is non-NULL before use.

BUG=None

Review-Url: https://codereview.webrtc.org/2451143002
Cr-Commit-Position: refs/heads/master@{#14788}
This commit is contained in:
nisse 2016-10-26 07:02:23 -07:00 committed by Commit bot
parent 5819660f9d
commit 784a83122b

View File

@ -463,8 +463,9 @@ void ViEEncoder::ReconfigureEncoder() {
void ViEEncoder::OnFrame(const VideoFrame& video_frame) {
RTC_DCHECK_RUNS_SERIALIZED(&incoming_frame_race_checker_);
stats_proxy_->OnIncomingFrame(video_frame.width(), video_frame.height());
if (stats_proxy_) {
stats_proxy_->OnIncomingFrame(video_frame.width(), video_frame.height());
}
VideoFrame incoming_frame = video_frame;
// Local time in webrtc time base.