summaryrefslogtreecommitdiffstats
path: root/media/base/video_frame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/video_frame.cc')
-rw-r--r--media/base/video_frame.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 57a4d0d..332c3c5 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -39,8 +39,8 @@ void VideoFrame::CreateFrame(VideoFrame::Format format,
DCHECK(width * height < 100000000);
DCHECK(frame_out);
bool alloc_worked = false;
- scoped_refptr<VideoFrame> frame =
- new VideoFrame(VideoFrame::TYPE_SYSTEM_MEMORY, format, width, height);
+ scoped_refptr<VideoFrame> frame(
+ new VideoFrame(VideoFrame::TYPE_SYSTEM_MEMORY, format, width, height));
if (frame) {
frame->SetTimestamp(timestamp);
frame->SetDuration(duration);
@@ -85,8 +85,8 @@ void VideoFrame::CreateFrameExternal(SurfaceType type,
void* private_buffer,
scoped_refptr<VideoFrame>* frame_out) {
DCHECK(frame_out);
- scoped_refptr<VideoFrame> frame =
- new VideoFrame(type, format, width, height);
+ scoped_refptr<VideoFrame> frame(
+ new VideoFrame(type, format, width, height));
if (frame) {
frame->SetTimestamp(timestamp);
frame->SetDuration(duration);
@@ -108,8 +108,8 @@ void VideoFrame::CreateFrameGlTexture(Format format,
GlTexture const textures[kMaxPlanes],
scoped_refptr<VideoFrame>* frame_out) {
DCHECK(frame_out);
- scoped_refptr<VideoFrame> frame =
- new VideoFrame(TYPE_GL_TEXTURE, format, width, height);
+ scoped_refptr<VideoFrame> frame(
+ new VideoFrame(TYPE_GL_TEXTURE, format, width, height));
if (frame) {
frame->external_memory_ = true;
frame->planes_ = GetNumberOfPlanes(format);