]> git.sesse.net Git - vlc/blobdiff - test/libvlc/meta.c
LibVLC core: remove exceptions
[vlc] / test / libvlc / meta.c
index 3743733ee5d05bd0212971b058216eeeb82592cd..c4131ebbb9ebbf323b9e40b3882ecf2798d39f64 100644 (file)
@@ -35,8 +35,8 @@ static void test_meta (const char ** argv, int argc)
     log ("Testing meta\n");
 
     libvlc_exception_init (&ex);
-    vlc = libvlc_new (argc, argv, &ex);
-    catch ();
+    vlc = libvlc_new (argc, argv);
+    assert (vlc != NULL);
 
     media = libvlc_media_new (vlc, "samples/meta.sample", &ex);
     catch ();
@@ -44,20 +44,17 @@ static void test_meta (const char ** argv, int argc)
     /* Tell that we are interested in this precise meta data
      * This is needed to trigger meta data reading
      * (the first calls return NULL) */
-    artist = libvlc_media_get_meta (media, libvlc_meta_Artist, &ex);
-    catch ();
+    artist = libvlc_media_get_meta (media, libvlc_meta_Artist);
 
     free (artist);
 
     /* Wait for the meta */
-    while (!libvlc_media_is_preparsed (media, &ex))
+    while (!libvlc_media_is_preparsed (media))
     {
-        catch ();
         usleep (10000);
     }
 
-    artist = libvlc_media_get_meta (media, libvlc_meta_Artist, &ex);
-    catch ();
+    artist = libvlc_media_get_meta (media, libvlc_meta_Artist);
 
     const char *expected_artist = "mike";