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

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

Issue 2626443003: Improve MediaPlayerBridge seek resiliance (Closed)
Patch Set: 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 | « content/browser/media/android/media_player_renderer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_player_bridge.cc
diff --git a/media/base/android/media_player_bridge.cc b/media/base/android/media_player_bridge.cc
index 8d67a6cb5b32989f02087b029b21c0b3631ebbf7..c6de0bf271df93a994ca3d33b72cbf6498224fe8 100644
--- a/media/base/android/media_player_bridge.cc
+++ b/media/base/android/media_player_bridge.cc
@@ -468,6 +468,8 @@ void MediaPlayerBridge::OnMediaPrepared() {
prepared_ = true;
duration_ = GetDuration();
+ UpdateAllowedOperations();
+
// If media player was recovered from a saved state, consume all the pending
// events.
if (should_seek_on_prepare_) {
@@ -484,7 +486,6 @@ void MediaPlayerBridge::OnMediaPrepared() {
pending_play_ = false;
}
- UpdateAllowedOperations();
manager()->OnMediaMetadataChanged(
player_id(), duration_, width_, height_, true);
}
« no previous file with comments | « content/browser/media/android/media_player_renderer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698