[vlc-commits] lib: remove playlist dependency on media parsing (fixes #5460)

Rémi Denis-Courmont git at videolan.org
Tue Dec 31 19:45:11 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 31 20:31:52 2013 +0200| [df07ba0d22a98e95e0dfcd5d93551b1d5f36a910] | committer: Rémi Denis-Courmont

lib: remove playlist dependency on media parsing (fixes #5460)

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

 lib/media.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/media.c b/lib/media.c
index d3b9ff9..04314b0 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -617,13 +617,12 @@ libvlc_media_get_duration( libvlc_media_t * p_md )
 
 static int media_parse(libvlc_media_t *media)
 {
-    /* TODO: fetcher and parser independent of playlist */
-#warning FIXME: remove pl_Get
-    playlist_t *playlist = pl_Get(media->p_libvlc_instance->p_libvlc_int);
+    libvlc_int_t *libvlc = media->p_libvlc_instance->p_libvlc_int;
+    input_item_t *item = media->p_input_item;
 
     /* TODO: Fetch art on need basis. But how not to break compatibility? */
-    playlist_AskForArtEnqueue(playlist, media->p_input_item );
-    return playlist_PreparseEnqueue(playlist, media->p_input_item);
+    libvlc_ArtRequest(libvlc, item);
+    return libvlc_MetaRequest(libvlc, item);
 }
 
 /**************************************************************************



More information about the vlc-commits mailing list