#include <vlc_playlist.h>
#include <vlc_url.h>
#include <vlc_arrays.h>
+#include <vlc_modules.h>
#include "input_internal.h"
#include "../playlist/art.h"
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 ) )
{
vlc_input_attachment_Delete( p_attachment );
exit:
- pl_Release( p_input );
free( psz_arturl );
}