summaryrefslogtreecommitdiffstats
path: root/media/base/data_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/data_buffer.cc')
-rw-r--r--media/base/data_buffer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/base/data_buffer.cc b/media/base/data_buffer.cc
index 31b3c1c..b82de51 100644
--- a/media/base/data_buffer.cc
+++ b/media/base/data_buffer.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,8 +7,8 @@
namespace media {
-DataBuffer::DataBuffer(uint8* buffer, size_t buffer_size)
- : data_(buffer),
+DataBuffer::DataBuffer(scoped_array<uint8> buffer, size_t buffer_size)
+ : data_(buffer.Pass()),
buffer_size_(buffer_size),
data_size_(buffer_size) {
}