Commit d37f4748 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

test: catch() a bit more, and send artist meta to log output.

parent 2a9531bf
...@@ -36,6 +36,7 @@ static void test_meta (const char ** argv, int argc) ...@@ -36,6 +36,7 @@ static void test_meta (const char ** argv, int argc)
catch (); catch ();
media = libvlc_media_new (vlc, "samples/meta.sample", &ex); media = libvlc_media_new (vlc, "samples/meta.sample", &ex);
catch ();
/* Tell that we are interested in this precise meta data */ /* Tell that we are interested in this precise meta data */
artist = libvlc_media_get_meta (media, libvlc_meta_Artist, &ex); artist = libvlc_media_get_meta (media, libvlc_meta_Artist, &ex);
...@@ -51,6 +52,8 @@ static void test_meta (const char ** argv, int argc) ...@@ -51,6 +52,8 @@ static void test_meta (const char ** argv, int argc)
assert (artist && *artist); assert (artist && *artist);
log ("+ got '%s' as Artist\n", artist);
free (artist); free (artist);
libvlc_media_release (media); libvlc_media_release (media);
libvlc_release (vlc); libvlc_release (vlc);
......
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