Index: media/mojo/services/mojo_decryptor_service.cc |
diff --git a/media/mojo/services/mojo_decryptor_service.cc b/media/mojo/services/mojo_decryptor_service.cc |
index 592bcb6ed873ecfe439ea7f5b4791c7a6366ac81..0e140b79de70e85119c5dcf95c81849e0514f82b 100644 |
--- a/media/mojo/services/mojo_decryptor_service.cc |
+++ b/media/mojo/services/mojo_decryptor_service.cc |
@@ -238,15 +238,13 @@ void MojoDecryptorService::OnVideoDecoded( |
// If |frame| has shared memory that will be passed back, keep the reference |
// to it until the other side is done with the memory. |
- mojom::VideoFramePtr mojo_frame = mojom::VideoFrame::From(frame); |
mojom::FrameResourceReleaserPtr releaser; |
if (frame->storage_type() == VideoFrame::STORAGE_MOJO_SHARED_BUFFER) { |
- mojo::MakeStrongBinding( |
- base::MakeUnique<FrameResourceReleaserImpl>(std::move(frame)), |
- mojo::MakeRequest(&releaser)); |
+ mojo::MakeStrongBinding(base::MakeUnique<FrameResourceReleaserImpl>(frame), |
+ mojo::MakeRequest(&releaser)); |
} |
- callback.Run(status, std::move(mojo_frame), std::move(releaser)); |
+ callback.Run(status, std::move(frame), std::move(releaser)); |
} |
} // namespace media |