| 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 e043a7878df7efa29149b60a6842fc3d4831c21d..4ec4419ee00fe8ba2acdc79f187bad4e646b33ae 100644
|
| --- a/media/base/android/media_player_bridge.cc
|
| +++ b/media/base/android/media_player_bridge.cc
|
| @@ -109,17 +109,16 @@ void MediaPlayerBridge::SetDuration(base::TimeDelta duration) {
|
| }
|
|
|
| void MediaPlayerBridge::SetVideoSurface(gfx::ScopedJavaSurface surface) {
|
| - if (j_media_player_bridge_.is_null()) {
|
| - if (!surface.IsEmpty())
|
| - surface_ = surface.Pass();
|
| + surface_ = surface.Pass();
|
| +
|
| + if (j_media_player_bridge_.is_null())
|
| return;
|
| - }
|
|
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| CHECK(env);
|
|
|
| Java_MediaPlayerBridge_setSurface(
|
| - env, j_media_player_bridge_.obj(), surface.j_surface().obj());
|
| + env, j_media_player_bridge_.obj(), surface_.j_surface().obj());
|
| }
|
|
|
| void MediaPlayerBridge::Prepare() {
|
|
|