[Android] VideoPlayer: stopPlayback if requestVisibleBehind fails

Thomas Guillem git at videolan.org
Thu Sep 3 17:45:37 CEST 2015


vlc-ports/android | branch: data-binding | Thomas Guillem <thomas at gllm.fr> | Wed Sep  2 17:54:21 2015 +0200| [c506415cedacb5f47dae4d34fca61bb72de8cae0] | committer: Geoffrey Métais

VideoPlayer: stopPlayback if requestVisibleBehind fails

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c506415cedacb5f47dae4d34fca61bb72de8cae0
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java        |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 3428bf5..49db049 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -544,8 +544,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         /* Stop the earliest possible to avoid vout error */
         if (isFinishing())
             stopPlayback();
-        else if (BuildConfig.tv && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
-            requestVisibleBehind(true);
+        else if (BuildConfig.tv && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !requestVisibleBehind(true))
+            stopPlayback();
     }
 
     @Override



More information about the Android mailing list