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

Unified Diff: media/mojo/clients/mojo_renderer.cc

Issue 2387293007: Register MediaPlayerRenderer service (Closed)
Patch Set: Typo. Created 4 years, 2 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/blink/webmediaplayer_impl.cc ('k') | media/mojo/clients/mojo_renderer_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_renderer.cc
diff --git a/media/mojo/clients/mojo_renderer.cc b/media/mojo/clients/mojo_renderer.cc
index f22bfd2b8cc07ea6c3f71a74da2c6e57ce87ab8b..3f0a7c6913474f553f1fdc32ecdab327e147f8c1 100644
--- a/media/mojo/clients/mojo_renderer.cc
+++ b/media/mojo/clients/mojo_renderer.cc
@@ -297,8 +297,10 @@ void MojoRenderer::OnVideoNaturalSizeChange(const gfx::Size& size) {
DVLOG(2) << __FUNCTION__ << ": " << size.ToString();
DCHECK(task_runner_->BelongsToCurrentThread());
- video_renderer_sink_->PaintSingleFrame(
- video_overlay_factory_->CreateFrame(size));
+ if (video_overlay_factory_) {
+ video_renderer_sink_->PaintSingleFrame(
+ video_overlay_factory_->CreateFrame(size));
+ }
client_->OnVideoNaturalSizeChange(size);
}
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/mojo/clients/mojo_renderer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698