new convenience constructor added
authorFilippo Carone <littlejohn@videolan.org>
Sun, 23 Mar 2008 16:01:45 +0000 (17:01 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Wed, 26 Mar 2008 23:05:31 +0000 (00:05 +0100)
core/src/main/java/org/videolan/jvlc/JVLC.java

index c26691e..b2d29ff 100644 (file)
@@ -61,6 +61,11 @@ public class JVLC
         System.arraycopy(args, 0, myargs, 1, args.length);
         instance = createInstance(myargs);
     }
+    
+    public JVLC(String args)
+    {
+        this(args.split(" "));
+    }
 
     public MediaInstance play(String media)
     {