[vlc-devel] [PATCH 12/15] test/media: remove libjpeg dependency

Thomas Guillem thomas at gllm.fr
Thu Apr 14 17:45:01 CEST 2016


---
 test/libvlc/media.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index 8fb2291..fccd93e 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -66,11 +66,7 @@ static void test_media_preparsed(const char** argv, int argc)
     vlc_sem_destroy (&sem);
 
     // We are good, now check Elementary Stream info.
-    libvlc_media_track_t **tracks;
-    unsigned nb_tracks = libvlc_media_tracks_get (media, &tracks);
-    assert (nb_tracks == 1);
-    assert (tracks[0]->i_type == libvlc_track_video);
-    libvlc_media_tracks_release (tracks, nb_tracks);
+    assert (libvlc_media_get_parsed_status(media) == libvlc_media_parse_done);
 
     libvlc_media_release (media);
     libvlc_release (vlc);
-- 
2.8.0.rc3



More information about the vlc-devel mailing list