]> git.sesse.net Git - vlc/blobdiff - bindings/java/core/src/main/java/org/videolan/jvlc/JVLC.java
VLM class almost done
[vlc] / bindings / java / core / src / main / java / org / videolan / jvlc / JVLC.java
index 1d089c1566e4a96ba67d736a7f5190331c3a2da1..32cf17988873986865e52b2ea76acc9956b4e2b0 100644 (file)
@@ -46,6 +46,8 @@ public class JVLC
 
     private MediaList mediaList;
     
+    private VLM vlm;
+    
     private volatile boolean released; 
     
     public JVLC()
@@ -96,6 +98,16 @@ public class JVLC
         return new Logger(this);
     }
     
+    public VLM getVLM()
+    {
+        if (vlm != null)
+        {
+            vlm.release();
+        }
+        this.vlm = new VLM(this);
+        return vlm;
+    }
+    
     public LoggerVerbosityLevel getLogVerbosity()
     {
         libvlc_exception_t exception = new libvlc_exception_t();
@@ -136,6 +148,11 @@ public class JVLC
         if (!released)
         {
             released = true;
+            if (vlm != null)
+            {
+                vlm.release();
+                vlm = null;
+            }
             libvlc.libvlc_release(instance);
         }
     }