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

Unified Diff: media/base/android/media_source_player.cc

Issue 171233007: Don't process pending prefetch events if we fail to create video decoder job (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_source_player.cc
diff --git a/media/base/android/media_source_player.cc b/media/base/android/media_source_player.cc
index 598ff6b036ad4124daa3f0e7f7b7bce51f5deb80..61fc9fbd54f0eb9241a684ccfb1851de2df60f1f 100644
--- a/media/base/android/media_source_player.cc
+++ b/media/base/android/media_source_player.cc
@@ -525,9 +525,8 @@ void MediaSourcePlayer::ProcessPendingEvents() {
ConfigureVideoDecoderJob();
// Return early if we can't successfully configure a new video decoder job
- // yet, except continue processing other pending events if |surface_| is
- // empty.
- if (HasVideo() && !video_decoder_job_ && !surface_.IsEmpty())
+ // yet.
+ if (HasVideo() && !video_decoder_job_)
return;
}
« no previous file with comments | « no previous file | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698