Commit 92bdd6e5 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

meta: Use libvlc_media_parse().

parent 1b1325c6
...@@ -40,18 +40,7 @@ static void test_meta (const char ** argv, int argc) ...@@ -40,18 +40,7 @@ static void test_meta (const char ** argv, int argc)
media = libvlc_media_new_path (vlc, "samples/meta.sample"); media = libvlc_media_new_path (vlc, "samples/meta.sample");
assert( media ); assert( media );
/* Tell that we are interested in this precise meta data libvlc_media_parse (media);
* 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);
}
artist = libvlc_media_get_meta (media, libvlc_meta_Artist); artist = libvlc_media_get_meta (media, libvlc_meta_Artist);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment