]> git.sesse.net Git - vlc/blobdiff - src/input/meta.c
Do not include input_internal.h in vlm code.
[vlc] / src / input / meta.c
index 52b27c1ac3ddbe3740bcb51e5853456ee4cbb71c..f6eaed6fa6123dc3c60520c611a5ba79fb96f238 100644 (file)
@@ -205,13 +205,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 +253,6 @@ void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
     vlc_input_attachment_Delete( p_attachment );
 
 exit:
-    pl_Release( p_input );
     free( psz_arturl );
 }