| 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 44b4471cc69c69eccda3b13ef2553f56e51a12ed..fcc40220d0614ba6bfa9abe098c8e49196f02977 100644
|
| --- a/media/gpu/android_video_decode_accelerator.cc
|
| +++ b/media/gpu/android_video_decode_accelerator.cc
|
| @@ -259,7 +259,7 @@ class AVDAManager {
|
| // guaranteed to not run StopThreadTask() when the thread is hung because if
|
| // an AVDA queues tasks after DoNothing(), the StopThreadTask() reply will
|
| // be canceled by invalidating its weak pointer.
|
| - if (thread_avda_instances_.empty() &&
|
| + if (thread_avda_instances_.empty() && construction_thread_.IsRunning() &&
|
| !hang_detector_.IsThreadLikelyHung()) {
|
| construction_thread_.task_runner()->PostTaskAndReply(
|
| FROM_HERE, base::Bind(&base::DoNothing),
|
|
|