| Index: media/gpu/android_video_decode_accelerator.cc
|
| diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
|
| index 5ea83cddfb82881f91be152e45eed77b0bfb1082..e5f72b127e495a0a486d753755ff4be1b92430d1 100644
|
| --- a/media/gpu/android_video_decode_accelerator.cc
|
| +++ b/media/gpu/android_video_decode_accelerator.cc
|
| @@ -1416,12 +1416,8 @@ void AndroidVideoDecodeAccelerator::ActualDestroy() {
|
| // backed by hardware, else it may hang too. Post it to the construction
|
| // thread, and it'll get freed if things start working. If things are
|
| // already working, then it'll be freed soon.
|
| - if (media_codec_->IsSoftwareCodec()) {
|
| - media_codec_.reset();
|
| - } else {
|
| - manager->ConstructionTaskRunner()->DeleteSoon(FROM_HERE,
|
| - media_codec_.release());
|
| - }
|
| + manager->ConstructionTaskRunner()->DeleteSoon(FROM_HERE,
|
| + media_codec_.release());
|
| }
|
| delete this;
|
| }
|
|
|