summaryrefslogtreecommitdiffstats
path: root/chromecast/renderer
diff options
context:
space:
mode:
authoremircan <emircan@chromium.org>2016-01-15 00:59:27 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-15 09:00:38 +0000
commit8428d41278c107c107736454dc4fdddbd14969bd (patch)
treeed8c911e772aecc90b7f610f65abf8f33e357d12 /chromecast/renderer
parent4977dd61169929d41ac1ff5d50c3b194bce71e60 (diff)
downloadchromium_src-8428d41278c107c107736454dc4fdddbd14969bd.zip
chromium_src-8428d41278c107c107736454dc4fdddbd14969bd.tar.gz
chromium_src-8428d41278c107c107736454dc4fdddbd14969bd.tar.bz2
Verify returned frames from media::VideoFrame::Wrap*() methods
BUG=552112 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1476523005 Cr-Commit-Position: refs/heads/master@{#369705}
Diffstat (limited to 'chromecast/renderer')
-rw-r--r--chromecast/renderer/media/hole_frame_factory.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chromecast/renderer/media/hole_frame_factory.cc b/chromecast/renderer/media/hole_frame_factory.cc
index c4f26e6..e62378e 100644
--- a/chromecast/renderer/media/hole_frame_factory.cc
+++ b/chromecast/renderer/media/hole_frame_factory.cc
@@ -64,6 +64,7 @@ scoped_refptr<::media::VideoFrame> HoleFrameFactory::CreateHoleFrame(
gfx::Rect(size), // visible rect
size, // natural size
base::TimeDelta()); // timestamp
+ CHECK(frame);
frame->metadata()->SetBoolean(::media::VideoFrameMetadata::ALLOW_OVERLAY,
true);
return frame;