control/media_descriptor.c: Use playlist's fetcher to preparse the item.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 16:47:40 +0000 (16:47 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 16:47:40 +0000 (16:47 +0000)
src/control/media_descriptor.c

index 8fb9092..310ebaf 100644 (file)
@@ -157,8 +157,13 @@ static void preparse_if_needed( libvlc_media_descriptor_t *p_md )
     /* XXX: need some locking here */
     if (!p_md->b_preparsed)
     {
-        input_Preparse( p_md->p_libvlc_instance->p_libvlc_int,
-                        p_md->p_input_item );
+        playlist_PreparseEnqueue(
+                p_md->p_libvlc_instance->p_libvlc_int->p_playlist,
+                p_md->p_input_item );
+        playlist_AskForArtEnqueue(
+                p_md->p_libvlc_instance->p_libvlc_int->p_playlist,
+                p_md->p_input_item );
+
         p_md->b_preparsed = VLC_TRUE;
     }
 }