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

playlist: remove playlist_PreparseEnqueue() (refs #5460)

parent d64350b4
......@@ -292,9 +292,6 @@ VLC_API mtime_t playlist_GetNodeDuration( playlist_item_t * );
*/
VLC_API void playlist_Clear( playlist_t *, bool );
/** Enqueue an input item for preparsing */
VLC_API int playlist_PreparseEnqueue(playlist_t *, input_item_t * );
/* Playlist sorting */
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 );
......
......@@ -860,7 +860,7 @@
if (p_item) {
if (p_item->i_children == -1)
playlist_PreparseEnqueue(p_playlist, p_item->p_input);
libvlc_MetaRequest(p_intf->p_libvlc, p_item->p_input);
else
msg_Dbg(p_intf, "preparsing nodes not implemented");
}
......
......@@ -212,7 +212,7 @@ static VLCInfo *_o_sharedInstance = nil;
[o_image_well setImage: [NSImage imageNamed: @"noart.png"]];
} else {
if (!input_item_IsPreparsed(p_item))
playlist_PreparseEnqueue(pl_Get(VLCIntf), p_item);
libvlc_MetaRequest(VLCIntf->p_libvlc, p_item);
/* fill uri info */
char * psz_url = decode_URI(input_item_GetURI(p_item));
......
......@@ -334,7 +334,6 @@ playlist_NodeCreate
playlist_NodeDelete
playlist_NodeInsert
playlist_NodeRemoveItem
playlist_PreparseEnqueue
playlist_RecursiveNodeSort
playlist_ServicesDiscoveryAdd
playlist_ServicesDiscoveryControl
......
......@@ -160,17 +160,3 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
return VLC_SUCCESS;
}
/*****************************************************************************
* Preparse control
*****************************************************************************/
/** Enqueue an item for preparsing */
int playlist_PreparseEnqueue( 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_Push( p_sys->p_preparser, p_item );
return VLC_SUCCESS;
}
......@@ -766,7 +766,7 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
input_item_IsPreparsed( p_item->p_input ) == false &&
( EMPTY_STR( psz_artist ) || ( EMPTY_STR( psz_album ) ) )
)
playlist_PreparseEnqueue( p_playlist, p_item->p_input );
libvlc_MetaRequest( p_playlist->p_libvlc, p_item->p_input );
free( psz_artist );
free( psz_album );
}
......
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