create a medialist on JVLC creation
authorFilippo Carone <littlejohn@videolan.org>
Thu, 20 Mar 2008 23:31:58 +0000 (00:31 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Thu, 20 Mar 2008 23:36:46 +0000 (00:36 +0100)
core/src/main/java/org/videolan/jvlc/JVLC.java

index 7ffaa18..c26691e 100644 (file)
 
 package org.videolan.jvlc;
 
+import java.awt.Canvas;
+
 import org.videolan.jvlc.internal.LibVlc;
 import org.videolan.jvlc.internal.LibVlc.LibVlcInstance;
 import org.videolan.jvlc.internal.LibVlc.libvlc_exception_t;
 
 import com.sun.jna.Native;
 
-import java.awt.Canvas;
-
 public class JVLC
 {
 
     private final LibVlcInstance instance;
 
     private final LibVlc libvlc = LibVlc.SYNC_INSTANCE;
+
+    private MediaList mediaList;
     
     public JVLC()
     {
         String[] args = new String[1];
         args[0] = "jvlc";
         instance = createInstance(args);
+        mediaList = new MediaList(this);
     }
 
     public JVLC(String[] args)
@@ -113,4 +116,14 @@ public class JVLC
         libvlc.libvlc_release(instance);
         super.finalize();
     }
+    
+    /**
+     * Returns the mediaList.
+     * @return the mediaList
+     */
+    public MediaList getMediaList()
+    {
+        return mediaList;
+    }
+    
 }