]> git.sesse.net Git - vlc/commitdiff
Also test libvlc_playlist_clear and libvlc_playlist_add_extended
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 21 Oct 2007 17:30:59 +0000 (17:30 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 21 Oct 2007 17:30:59 +0000 (17:30 +0000)
src/control/testapi.c

index a6f32574d39089574763eb9a7f62693b6e040d43..e312df0259b66015bfdbef3281374a0f0b39a892 100644 (file)
@@ -49,6 +49,7 @@ int main (int argc, char *argv[])
 {
     libvlc_instance_t *vlc;
     const char *args[argc + 3];
+    int id;
 
     alarm (30); /* Make sure "make check" does not get stuck */
 
@@ -63,6 +64,16 @@ int main (int argc, char *argv[])
     vlc = libvlc_new (sizeof (args) / sizeof (args[0]), args, &ex);
     catch ();
 
+    libvlc_playlist_clear (vlc, &ex);
+    catch ();
+
+    id = libvlc_playlist_add_extended (vlc, "/dev/null", "Test", 0, NULL,
+                                       &ex);
+    catch ();
+
+    libvlc_playlist_clear (vlc, &ex);
+    catch ();
+
     libvlc_destroy (vlc, &ex);
     catch ();
     return 0;