[Android] VideoPlayer: configureSurface can be called without hal
Thomas Guillem
git at videolan.org
Mon Nov 17 14:53:08 CET 2014
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 17 14:44:13 2014 +0100| [2d4db56373bf631cf77f8e0a7a1a1865d5c67588] | committer: Jean-Baptiste Kempf
VideoPlayer: configureSurface can be called without hal
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=2d4db56373bf631cf77f8e0a7a1a1865d5c67588
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 ++++--
1 file changed, 4 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 a502414..395aee8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -874,10 +874,12 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
@Override
public void run() {
if (mSurface == surface && mSurfaceHolder != null) {
- mSurfaceHolder.setFormat(hal);
+ if (hal != 0)
+ mSurfaceHolder.setFormat(hal);
mSurfaceHolder.setFixedSize(width, height);
} else if (mSubtitleSurface == surface && mSubtitlesSurfaceHolder != null) {
- mSubtitlesSurfaceHolder.setFormat(hal);
+ if (hal != 0)
+ mSubtitlesSurfaceHolder.setFormat(hal);
mSubtitlesSurfaceHolder.setFixedSize(width, height);
}
More information about the Android
mailing list