]> git.sesse.net Git - vlc/commitdiff
meta: Use libvlc_media_parse().
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 25 Feb 2010 21:25:59 +0000 (22:25 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 25 Feb 2010 22:47:03 +0000 (23:47 +0100)
test/libvlc/meta.c

index 690578d7ae33b485392a594534320aa773ea788b..aa29c98406f8444de7a3c6d3a59b621fd9e4ed1a 100644 (file)
@@ -40,18 +40,7 @@ static void test_meta (const char ** argv, int argc)
     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);