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

Unified Diff: media/filters/omx_video_decode_engine.cc

Issue 2234009: set client state to kClientInitializing a little earlier in order to satisfy ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 7 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: media/filters/omx_video_decode_engine.cc
===================================================================
--- media/filters/omx_video_decode_engine.cc (revision 48428)
+++ media/filters/omx_video_decode_engine.cc (working copy)
@@ -105,6 +105,8 @@
message_loop_->PostTask(FROM_HERE,
NewRunnableMethod(this, &OmxVideoDecodeEngine::InitializeTask));
+
+ client_state_ = kClientInitializing;
}
// This method handles only input buffer, without coupling with output
@@ -238,12 +240,11 @@
// Function sequence for initializing
void OmxVideoDecodeEngine::InitializeTask() {
DCHECK_EQ(message_loop_, MessageLoop::current());
- DCHECK_EQ(client_state_, kClientNotInitialized);
+ DCHECK_EQ(client_state_, kClientInitializing);
DCHECK_EQ(il_state_, kIlNone);
il_state_ = kIlNone;
expected_il_state_ = kIlLoaded;
- client_state_ = kClientInitializing;
input_port_enabled_ = true;
output_port_state_ = kPortEnabled;
if (!CreateComponent()) {
« 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