[Android] LibVLC: instance should be locked

Thomas Guillem git at videolan.org
Tue Feb 17 17:56:46 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb 17 17:44:18 2015 +0100| [12acbae593a85e82f8748fdeae863609ad0747f1] | committer: Thomas Guillem

LibVLC: instance should be locked

CID #1270659

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

 libvlc/src/org/videolan/libvlc/LibVLC.java |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libvlc/src/org/videolan/libvlc/LibVLC.java b/libvlc/src/org/videolan/libvlc/LibVLC.java
index b9cf4ae..1f87c7e 100644
--- a/libvlc/src/org/videolan/libvlc/LibVLC.java
+++ b/libvlc/src/org/videolan/libvlc/LibVLC.java
@@ -167,9 +167,8 @@ public class LibVLC {
                 /* First call */
                 sInstance = new LibVLC();
             }
+            return sInstance;
         }
-
-        return sInstance;
     }
 
     /**



More information about the Android mailing list