fix jvlc arguments
authorFilippo Carone <littlejohn@videolan.org>
Fri, 28 Mar 2008 23:34:38 +0000 (00:34 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Fri, 28 Mar 2008 23:38:32 +0000 (00:38 +0100)
core/src/main/java/org/videolan/jvlc/JVLC.java

index b2d29ff..5d4d9c7 100644 (file)
@@ -48,18 +48,14 @@ public class JVLC
     
     public JVLC()
     {
-        String[] args = new String[1];
-        args[0] = "jvlc";
+        String[] args = new String[] {};
         instance = createInstance(args);
         mediaList = new MediaList(this);
     }
 
     public JVLC(String[] args)
     {
-        String[] myargs = new String[args.length + 1];
-        myargs[0] = "jvlc";
-        System.arraycopy(args, 0, myargs, 1, args.length);
-        instance = createInstance(myargs);
+        instance = createInstance(args);
     }
     
     public JVLC(String args)