]> git.sesse.net Git - vlc/blobdiff - test/libvlc/media_list.c
LibVLC core: remove exceptions
[vlc] / test / libvlc / media_list.c
index 3413b219ccccfecccf00cdc4322722d302108867..a41e839d8528bb30467ec2d19315a77711bf16fd 100644 (file)
@@ -32,11 +32,11 @@ static void test_media_list (const char ** argv, int argc)
     log ("Testing media_list\n");
 
     libvlc_exception_init (&ex);
-    vlc = libvlc_new (argc, argv, &ex);
-    catch ();
+    vlc = libvlc_new (argc, argv);
+    assert (vlc != NULL);
 
-    ml = libvlc_media_list_new (vlc, &ex);
-    catch ();
+    ml = libvlc_media_list_new (vlc);
+    assert (ml != NULL);
 
     md1 = libvlc_media_new (vlc, "/dev/null", &ex);
     catch ();