Commit d64350b4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove playlist_AskForArtEnqueue() (refs #5460)

parent df07ba0d
...@@ -295,9 +295,6 @@ VLC_API void playlist_Clear( playlist_t *, bool ); ...@@ -295,9 +295,6 @@ VLC_API void playlist_Clear( playlist_t *, bool );
/** Enqueue an input item for preparsing */ /** Enqueue an input item for preparsing */
VLC_API int playlist_PreparseEnqueue(playlist_t *, input_item_t * ); VLC_API int playlist_PreparseEnqueue(playlist_t *, input_item_t * );
/** Request the art for an input item to be fetched */
VLC_API int playlist_AskForArtEnqueue(playlist_t *, input_item_t * );
/* Playlist sorting */ /* Playlist sorting */
VLC_API int playlist_TreeMove( playlist_t *, playlist_item_t *, playlist_item_t *, int ); VLC_API int playlist_TreeMove( playlist_t *, playlist_item_t *, playlist_item_t *, int );
VLC_API int playlist_TreeMoveMany( playlist_t *, int, playlist_item_t **, playlist_item_t *, int ); VLC_API int playlist_TreeMoveMany( playlist_t *, int, playlist_item_t **, playlist_item_t *, int );
......
...@@ -885,7 +885,7 @@ ...@@ -885,7 +885,7 @@
p_item = [[o_outline_view itemAtRow: indexes[i]] pointerValue]; p_item = [[o_outline_view itemAtRow: indexes[i]] pointerValue];
if (p_item && p_item->i_children == -1) if (p_item && p_item->i_children == -1)
playlist_AskForArtEnqueue(p_playlist, p_item->p_input); libvlc_ArtRequest(p_intf->p_libvlc, p_item->p_input);
} }
[self playlistUpdated]; [self playlistUpdated];
} }
......
...@@ -364,7 +364,7 @@ error: ...@@ -364,7 +364,7 @@ error:
- (IBAction)downloadCoverArt:(id)sender - (IBAction)downloadCoverArt:(id)sender
{ {
playlist_t * p_playlist = pl_Get(VLCIntf); playlist_t * p_playlist = pl_Get(VLCIntf);
if (p_item) playlist_AskForArtEnqueue(p_playlist, p_item); if (p_item) libvlc_ArtRequest(VLCIntf->p_libvlc, p_item);
} }
- (input_item_t *)item - (input_item_t *)item
......
...@@ -654,7 +654,7 @@ void InputManager::requestArtUpdate( input_item_t *p_item ) ...@@ -654,7 +654,7 @@ void InputManager::requestArtUpdate( input_item_t *p_item )
if ( status & ( ITEM_ART_NOTFOUND|ITEM_ART_FETCHED ) ) if ( status & ( ITEM_ART_NOTFOUND|ITEM_ART_FETCHED ) )
return; return;
} }
playlist_AskForArtEnqueue( pl_Get(p_intf), p_item ); libvlc_ArtRequest( p_intf->p_libvlc, p_item );
/* No input will signal the cover art to update, /* No input will signal the cover art to update,
* let's do it ourself */ * let's do it ourself */
if ( b_current_item ) if ( b_current_item )
......
...@@ -309,7 +309,6 @@ plane_CopyPixels ...@@ -309,7 +309,6 @@ plane_CopyPixels
playlist_Add playlist_Add
playlist_AddExt playlist_AddExt
playlist_AddInput playlist_AddInput
playlist_AskForArtEnqueue
playlist_AssertLocked playlist_AssertLocked
playlist_ChildSearchName playlist_ChildSearchName
playlist_Clear playlist_Clear
......
...@@ -174,13 +174,3 @@ int playlist_PreparseEnqueue( playlist_t *p_playlist, input_item_t *p_item ) ...@@ -174,13 +174,3 @@ int playlist_PreparseEnqueue( playlist_t *p_playlist, input_item_t *p_item )
playlist_preparser_Push( p_sys->p_preparser, p_item ); playlist_preparser_Push( p_sys->p_preparser, p_item );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
int playlist_AskForArtEnqueue( playlist_t *p_playlist, input_item_t *p_item )
{
playlist_private_t *p_sys = pl_priv(p_playlist);
if( unlikely(p_sys->p_preparser == NULL) )
return VLC_ENOMEM;
playlist_preparser_fetcher_Push( p_sys->p_preparser, p_item );
return VLC_SUCCESS;
}
...@@ -246,7 +246,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item ) ...@@ -246,7 +246,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
if( !b_has_art || strncmp( psz_arturl, "attachment://", 13 ) ) if( !b_has_art || strncmp( psz_arturl, "attachment://", 13 ) )
{ {
PL_DEBUG( "requesting art for %s", psz_name ); PL_DEBUG( "requesting art for %s", psz_name );
playlist_AskForArtEnqueue( p_playlist, p_input ); libvlc_ArtRequest( p_playlist->p_libvlc, p_input );
} }
free( psz_arturl ); free( psz_arturl );
free( psz_name ); free( psz_name );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment