[Android] VideoPlayer: don't call setWindowSize if using compat surfaces

Thomas Guillem git at videolan.org
Fri Jan 23 17:55:20 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 23 17:54:51 2015 +0100| [d92c1a1bd19926cb32bd4031659b06e19a5b0a08] | committer: Thomas Guillem

VideoPlayer: don't call setWindowSize if using compat surfaces

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 604d015..aa00b6c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1376,7 +1376,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
             sw = mPresentation.getWindow().getDecorView().getWidth();
             sh = mPresentation.getWindow().getDecorView().getHeight();
         }
-        if (mLibVLC != null)
+        if (mLibVLC != null && !mLibVLC.useCompatSurface())
             mLibVLC.setWindowSize(sw, sh);
 
         double dw = sw, dh = sh;



More information about the Android mailing list