]> git.sesse.net Git - vlc/blobdiff - test/libvlc/meta.c
Qt: allow to select inexistent files from Prefs
[vlc] / test / libvlc / meta.c
index 2b621c054ba432021399aa19a8d2285bb6a35887..aa29c98406f8444de7a3c6d3a59b621fd9e4ed1a 100644 (file)
@@ -37,21 +37,10 @@ static void test_meta (const char ** argv, int argc)
     vlc = libvlc_new (argc, argv);
     assert (vlc != NULL);
 
-    media = libvlc_media_new (vlc, "samples/meta.sample");
+    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
-     * (the first calls return NULL) */
-    artist = libvlc_media_get_meta (media, libvlc_meta_Artist);
-
-    free (artist);
-
-    /* Wait for the meta */
-    while (!libvlc_media_is_preparsed (media))
-    {
-        usleep (10000);
-    }
+    libvlc_media_parse (media);
 
     artist = libvlc_media_get_meta (media, libvlc_meta_Artist);