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,8 +92,10 @@ void NullVideoSink::PaintSingleFrame(const scoped_refptr<VideoFrame>& frame,
bool repaint_duplicate_frame) {
if (!repaint_duplicate_frame && frame == last_frame_)
return;
last_frame_ = frame;
new_frame_cb_.Run(frame);
if (!new_frame_cb_.is_null())
new_frame_cb_.Run(frame);
}
} // namespace media
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