]> git.sesse.net Git - vlc/blobdiff - src/input/meta.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / input / meta.c
index 52b27c1ac3ddbe3740bcb51e5853456ee4cbb71c..bff1b7d2eb7bce2b55397e9814059ddc06cc389f 100644 (file)
@@ -30,6 +30,7 @@
 #include <vlc_playlist.h>
 #include <vlc_url.h>
 #include <vlc_arrays.h>
+#include <vlc_modules.h>
 
 #include "input_internal.h"
 #include "../playlist/art.h"
@@ -205,13 +206,7 @@ void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
         return;
     }
 
-    playlist_t *p_playlist = pl_Hold( p_input );
-    if( !p_playlist )
-    {
-        free( psz_arturl );
-        return;
-    }
-
+    playlist_t *p_playlist = pl_Get( p_input );
 
     if( input_item_IsArtFetched( p_item ) )
     {
@@ -259,7 +254,6 @@ void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
     vlc_input_attachment_Delete( p_attachment );
 
 exit:
-    pl_Release( p_input );
     free( psz_arturl );
 }