From: Pierre d'Herbemont Date: Thu, 25 Feb 2010 21:25:59 +0000 (+0100) Subject: meta: Use libvlc_media_parse(). X-Git-Tag: 1.1.0-pre1~667 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=92bdd6e5d93513a77b42844d1bc38738a9c7fd3a;p=vlc meta: Use libvlc_media_parse(). --- diff --git a/test/libvlc/meta.c b/test/libvlc/meta.c index 690578d7ae..aa29c98406 100644 --- a/test/libvlc/meta.c +++ b/test/libvlc/meta.c @@ -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);