]> git.sesse.net Git - vlc/commitdiff
Plugin path
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 26 Oct 2007 15:41:51 +0000 (15:41 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 26 Oct 2007 15:41:51 +0000 (15:41 +0000)
bindings/cil/testvlc.cs

index 1dde77a641f5dc45394ae21846d39c7f91663a2b..6f139db34b5ecd7eed83020b2da3a0fd2c66aa21 100644 (file)
@@ -30,10 +30,12 @@ namespace VideoLAN.LibVLC.Test
     {
         public static int Main (string[] args)
         {
-            string[] argv = new string[3]{ "-vvv", "-I", "dummy" };
+            string[] argv = new string[]{
+                "-vvv", "-I", "dummy", "--plugin-path=../../modules"
+            };
 
             Instance vlc = VLC.CreateInstance (argv);
-            MediaDescriptor md = vlc.CreateDescriptor (args[0]);
+            MediaDescriptor md = vlc.CreateDescriptor ("/dev/null");
             md.Dispose ();
 
             PlaylistItem item = null;
@@ -44,10 +46,13 @@ namespace VideoLAN.LibVLC.Test
             vlc.Loop = false;
             vlc.TogglePause ();
             Console.ReadLine ();
+            vlc.Stop ();
 
             if (item != null)
                 vlc.Delete (item);
             vlc.Clear ();
+
+            Console.ReadLine ();
             vlc.Dispose ();
             return 0;
         }