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

Unified Diff: content/browser/android/surface_texture_peer_browser_impl.cc

Issue 10979047: Upstream fullscreen video implementation for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add the missing media_player_messages.h Created 8 years, 3 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
Index: content/browser/android/surface_texture_peer_browser_impl.cc
diff --git a/content/browser/android/surface_texture_peer_browser_impl.cc b/content/browser/android/surface_texture_peer_browser_impl.cc
index a68286df08b6e8fc247b8d5a5e9a6e6429f303ea..d0eef94e284583147e828a7d7b2a6a061375bea3 100644
--- a/content/browser/android/surface_texture_peer_browser_impl.cc
+++ b/content/browser/android/surface_texture_peer_browser_impl.cc
@@ -38,9 +38,9 @@ static void SetSurfacePeer(jobject j_surface,
if (host) {
media::MediaPlayerBridge* player =
host->media_player_manager()->GetPlayer(player_id);
- if (player) {
- player->SetVideoSurface(j_surface);
- }
+ if (player &&
+ player != host->media_player_manager()->GetFullscreenPlayer())
+ player->SetVideoSurface(j_surface);
}
}

Powered by Google App Engine
This is Rietveld 408576698