Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(934)

Unified Diff: media/base/null_video_sink.cc

Issue 1188753002: media: Fix mojo pipeline integration tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: MEDIA_EXPORT Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/null_video_sink.h ('k') | media/media.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/null_video_sink.cc
diff --git a/media/base/null_video_sink.cc b/media/base/null_video_sink.cc
index 03a834f33614911411923509d8e995beb1b017b2..0d9746d3620af61fcf3ffba3a4b50982c026e024 100644
--- a/media/base/null_video_sink.cc
+++ b/media/base/null_video_sink.cc
@@ -58,7 +58,7 @@ void NullVideoSink::CallRender() {
current_render_time_, end_of_interval, background_render_);
const bool is_new_frame = new_frame != last_frame_;
last_frame_ = new_frame;
- if (is_new_frame)
+ if (is_new_frame && !new_frame_cb_.is_null())
new_frame_cb_.Run(new_frame);
current_render_time_ += interval_;
« no previous file with comments | « media/base/null_video_sink.h ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698