[vlc-devel] commit: meta: Use libvlc_media_parse(). (Pierre d'Herbemont )

git version control git at videolan.org
Thu Feb 25 23:47:00 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Feb 25 22:25:59 2010 +0100| [92bdd6e5d93513a77b42844d1bc38738a9c7fd3a] | committer: Pierre d'Herbemont 

meta: Use libvlc_media_parse().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92bdd6e5d93513a77b42844d1bc38738a9c7fd3a
---

 test/libvlc/meta.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/test/libvlc/meta.c b/test/libvlc/meta.c
index 690578d..aa29c98 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);
 




More information about the vlc-devel mailing list