[vlc-commits] input_ExtractAttachmentAndCacheArt(): no need for playlist

Rémi Denis-Courmont git at videolan.org
Tue Aug 21 19:49:17 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 21 20:41:06 2012 +0300| [80ae46b12a7c4fc1347a1cd22feea0938284bca1] | committer: Rémi Denis-Courmont

input_ExtractAttachmentAndCacheArt(): no need for playlist

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

 src/input/meta.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/input/meta.c b/src/input/meta.c
index e9b5938..75bc1e9 100644
--- a/src/input/meta.c
+++ b/src/input/meta.c
@@ -209,8 +209,6 @@ void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
         return;
     }
 
-    playlist_t *p_playlist = pl_Get( p_input );
-
     if( input_item_IsArtFetched( p_item ) )
     {
         /* XXX Weird, we should not have end up with attachment:// art url unless there is a race
@@ -251,7 +249,7 @@ void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
         psz_type = ".png";
 
     /* */
-    playlist_SaveArt( VLC_OBJECT(p_playlist), p_item,
+    playlist_SaveArt( VLC_OBJECT(p_input), p_item,
                       p_attachment->p_data, p_attachment->i_data, psz_type );
 
     vlc_input_attachment_Delete( p_attachment );



More information about the vlc-commits mailing list