[Android] LibVLC: fix wrong check in setSurface
Thomas Guillem
git at videolan.org
Mon Nov 2 10:14:44 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 2 10:12:39 2015 +0100| [745febcfe47a93611dd6bbc139eeaaa09b36bdc1] | committer: Thomas Guillem
LibVLC: fix wrong check in setSurface
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=745febcfe47a93611dd6bbc139eeaaa09b36bdc1
---
libvlc/src/org/videolan/libvlc/AWindow.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libvlc/src/org/videolan/libvlc/AWindow.java b/libvlc/src/org/videolan/libvlc/AWindow.java
index b8f9678..f0faef2 100644
--- a/libvlc/src/org/videolan/libvlc/AWindow.java
+++ b/libvlc/src/org/videolan/libvlc/AWindow.java
@@ -249,7 +249,7 @@ public class AWindow implements IAWindowNativeHandler, IVLCVout {
private void setSurface(int id, Surface surface, SurfaceHolder surfaceHolder) {
ensureInitState();
- if (!surface.isValid() || surfaceHolder == null)
+ if (!surface.isValid() && surfaceHolder == null)
throw new IllegalStateException("surface is not attached and holder is null");
final SurfaceHelper surfaceHelper = mSurfaceHelpers[id];
if (surfaceHelper != null)
More information about the Android
mailing list