Index: media/cast/sender/external_video_encoder.cc |
diff --git a/media/cast/sender/external_video_encoder.cc b/media/cast/sender/external_video_encoder.cc |
index a49cb9120a62ee2d49821184de20e8b3343f60ad..95f2fb08a12e1a853566d68a380adce825369dd7 100644 |
--- a/media/cast/sender/external_video_encoder.cc |
+++ b/media/cast/sender/external_video_encoder.cc |
@@ -269,7 +269,7 @@ class ExternalVideoEncoder::VEAClientImpl |
void OnReceivedSharedMemory(scoped_ptr<base::SharedMemory> memory) { |
DCHECK(task_runner_->RunsTasksOnCurrentThread()); |
- output_buffers_.push_back(memory.release()); |
+ output_buffers_.push_back(memory.Pass()); |
// Wait until all requested buffers are received. |
if (output_buffers_.size() < kOutputBufferCount) |