| Index: content/common/gpu/gpu_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/gpu_video_decode_accelerator.cc b/content/common/gpu/gpu_video_decode_accelerator.cc
|
| index e962968b4a8ee9013644b81ee3091222303bfa74..293962805b782f58611ed71ac2d341a1cf857771 100644
|
| --- a/content/common/gpu/gpu_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/gpu_video_decode_accelerator.cc
|
| @@ -108,7 +108,7 @@ void GpuVideoDecodeAccelerator::OnGetConfigs(
|
|
|
| void GpuVideoDecodeAccelerator::OnInitialize(
|
| const std::vector<uint32>& configs) {
|
| - if (!video_decode_accelerator_)
|
| + if (!video_decode_accelerator_.get())
|
| return;
|
|
|
| video_decode_accelerator_->Initialize(configs);
|
| @@ -117,7 +117,7 @@ void GpuVideoDecodeAccelerator::OnInitialize(
|
| void GpuVideoDecodeAccelerator::OnDecode(int32 id,
|
| base::SharedMemoryHandle handle,
|
| int32 size) {
|
| - if (!video_decode_accelerator_)
|
| + if (!video_decode_accelerator_.get())
|
| return;
|
| video_decode_accelerator_->Decode(media::BitstreamBuffer(id, handle, size));
|
| }
|
| @@ -140,24 +140,24 @@ void GpuVideoDecodeAccelerator::OnAssignSysmemBuffers(
|
| }
|
|
|
| void GpuVideoDecodeAccelerator::OnReusePictureBuffer(int32 picture_buffer_id) {
|
| - if (!video_decode_accelerator_)
|
| + if (!video_decode_accelerator_.get())
|
| return;
|
|
|
| video_decode_accelerator_->ReusePictureBuffer(picture_buffer_id);
|
| }
|
|
|
| void GpuVideoDecodeAccelerator::OnFlush() {
|
| - if (!video_decode_accelerator_)
|
| + if (!video_decode_accelerator_.get())
|
| return;
|
|
|
| - if (!video_decode_accelerator_->Flush()) {
|
| + if (!video_decode_accelerator_.get()->Flush()) {
|
| NotifyError(
|
| media::VideoDecodeAccelerator::VIDEODECODERERROR_UNEXPECTED_FLUSH);
|
| }
|
| }
|
|
|
| void GpuVideoDecodeAccelerator::OnAbort() {
|
| - if (!video_decode_accelerator_)
|
| + if (!video_decode_accelerator_.get())
|
| return;
|
|
|
| video_decode_accelerator_->Abort();
|
|
|