Index: media/base/stream_parser_buffer.cc |
diff --git a/media/base/stream_parser_buffer.cc b/media/base/stream_parser_buffer.cc |
index 9577821513773c8a15bf486977ec7ac1dbe49651..2be4dbefd71f591bf26539e05c594101798a9090 100644 |
--- a/media/base/stream_parser_buffer.cc |
+++ b/media/base/stream_parser_buffer.cc |
@@ -5,6 +5,7 @@ |
#include "media/base/stream_parser_buffer.h" |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
#include "media/base/timestamp_constants.h" |
namespace media { |
@@ -31,10 +32,9 @@ static scoped_refptr<StreamParserBuffer> CopyBuffer( |
copied_buffer->set_splice_timestamp(buffer.splice_timestamp()); |
const DecryptConfig* decrypt_config = buffer.decrypt_config(); |
if (decrypt_config) { |
- copied_buffer->set_decrypt_config( |
- make_scoped_ptr(new DecryptConfig(decrypt_config->key_id(), |
- decrypt_config->iv(), |
- decrypt_config->subsamples()))); |
+ copied_buffer->set_decrypt_config(base::WrapUnique( |
+ new DecryptConfig(decrypt_config->key_id(), decrypt_config->iv(), |
+ decrypt_config->subsamples()))); |
} |
return copied_buffer; |