Commit 419ef372 authored by alokp's avatar alokp Committed by Commit bot

Do not use NullVideoSink::new_frame_cb_ if NULL.

Review-Url: https://codereview.chromium.org/2282963002
Cr-Commit-Position: refs/heads/master@{#414852}
parent 9ee7c7df
...@@ -92,7 +92,9 @@ void NullVideoSink::PaintSingleFrame(const scoped_refptr<VideoFrame>& frame, ...@@ -92,7 +92,9 @@ void NullVideoSink::PaintSingleFrame(const scoped_refptr<VideoFrame>& frame,
bool repaint_duplicate_frame) { bool repaint_duplicate_frame) {
if (!repaint_duplicate_frame && frame == last_frame_) if (!repaint_duplicate_frame && frame == last_frame_)
return; return;
last_frame_ = frame; last_frame_ = frame;
if (!new_frame_cb_.is_null())
new_frame_cb_.Run(frame); new_frame_cb_.Run(frame);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment