Index: content/renderer/media/android/webmediaplayer_android.cc |
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc |
index e4b6fb0d731f857fea72d99788efd564223bda66..f1597fbdad701e022d85beb7f6fa94f1a0ca250b 100644 |
--- a/content/renderer/media/android/webmediaplayer_android.cc |
+++ b/content/renderer/media/android/webmediaplayer_android.cc |
@@ -948,8 +948,10 @@ void WebMediaPlayerAndroid::OnDidExitFullscreen() { |
SetNeedsEstablishPeer(true); |
// We had the fullscreen surface connected to Android MediaPlayer, |
// so reconnect our surface texture for embedded playback. |
- if (!paused() && needs_establish_peer_) |
+ if (!paused() && needs_establish_peer_) { |
+ TryCreateStreamTextureProxyIfNeeded(); |
boliu
2015/07/06 18:34:20
how would this help if the problem is needs_establ
Hugo Holgersson
2015/07/06 20:53:53
At this point, here in OnDidExitFullscreen(), need
boliu
2015/07/06 21:05:48
Ahh, ok. Then the more correct fix is to create a
Hugo Holgersson
2015/07/06 22:30:46
Hmm. I don't quite understand. SynchronousComposit
boliu
2015/07/06 23:33:21
I meant RestoreContextOnMainThread will call a dif
Hugo Holgersson
2015/07/08 13:23:50
If that method ignores needs_establish_peer_ it mi
boliu
2015/07/08 15:26:29
It could recreate only if there is already an exis
|
EstablishSurfaceTexturePeer(); |
+ } |
#if defined(VIDEO_HOLE) |
if (!paused() && needs_external_surface_) |