]> git.sesse.net Git - vlc/blobdiff - test/libvlc/meta.c
test: Update libvlc_media test.
[vlc] / test / libvlc / meta.c
index c4131ebbb9ebbf323b9e40b3882ecf2798d39f64..690578d7ae33b485392a594534320aa773ea788b 100644 (file)
@@ -22,7 +22,7 @@
  *  http://www.gnu.org/copyleft/gpl.html                              *
  **********************************************************************/
 
-#include <strings.h>
+#include <string.h>
 
 #include "test.h"
 
@@ -34,12 +34,11 @@ static void test_meta (const char ** argv, int argc)
 
     log ("Testing meta\n");
 
-    libvlc_exception_init (&ex);
     vlc = libvlc_new (argc, argv);
     assert (vlc != NULL);
 
-    media = libvlc_media_new (vlc, "samples/meta.sample", &ex);
-    catch ();
+    media = libvlc_media_new_path (vlc, "samples/meta.sample");
+    assert( media );
 
     /* Tell that we are interested in this precise meta data
      * This is needed to trigger meta data reading