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:
parent
5819660f9d
commit
784a83122b
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user