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

Unified Diff: media/filters/gpu_video_decoder.h

Issue 2621153004: media: Fix a GpuVideoDecoder initialization crash on Android (Closed)
Patch Set: bless windows for initializing this with garbage Created 3 years, 11 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 | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index 1f999cbe0ffe8de3f7ea341ea187b6702768df61..45c5b202d0090476d7b46434bd292d602569f774 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -178,6 +178,10 @@ class MEDIA_EXPORT GpuVideoDecoder
// occurs.
std::unique_ptr<VideoDecodeAccelerator> vda_;
+ // Whether |vda_->Initialize()| has been called. This is used to avoid
+ // calling Initialize() again while a deferred initialization is in progress.
+ bool vda_initialized_;
+
InitCB init_cb_;
OutputCB output_cb_;
« no previous file with comments | « no previous file | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698