| 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..5b4723a80f2175cf6544b00ff26f2e1ec74b1932 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,14 +140,14 @@ 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()) {
|
| @@ -157,7 +157,7 @@ void GpuVideoDecodeAccelerator::OnFlush() {
|
| }
|
|
|
| void GpuVideoDecodeAccelerator::OnAbort() {
|
| - if (!video_decode_accelerator_)
|
| + if (!video_decode_accelerator_.get())
|
| return;
|
|
|
| video_decode_accelerator_->Abort();
|
|
|