Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.cc

Issue 1896173003: media: CHECK AVDATimerManager construction task runner is not null (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/android_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
index f6f30f55e0389b6b84baf3f3e3a1b5e47ae743da..ee5a942c4463744aab80cbd2735568feadde7305 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -952,8 +952,12 @@ void AndroidVideoDecodeAccelerator::ConfigureMediaCodecAsynchronously() {
strategy_->CodecChanged(nullptr, output_picture_buffers_);
}
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner =
+ g_avda_timer.Pointer()->ConstructionTaskRunner();
+ CHECK(task_runner);
+
base::PostTaskAndReplyWithResult(
- g_avda_timer.Pointer()->ConstructionTaskRunner().get(), FROM_HERE,
+ task_runner.get(), FROM_HERE,
base::Bind(&AndroidVideoDecodeAccelerator::ConfigureMediaCodecOnAnyThread,
codec_config_),
base::Bind(&AndroidVideoDecodeAccelerator::OnCodecConfigured,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698