From: Rafaël Carré Date: Wed, 17 Oct 2007 15:51:00 +0000 (+0000) Subject: playlist_NodeDelete(): we want to delete a specific playlist_item_t*, not a playlist_... X-Git-Tag: 0.9.0-test0~4995 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=664b1e97b1892e915e57a40d8e15beca7572a450;p=vlc playlist_NodeDelete(): we want to delete a specific playlist_item_t*, not a playlist_item_t* associated to a specific input_item_t* --- diff --git a/src/playlist/tree.c b/src/playlist/tree.c index 68b2228842..27d94add47 100644 --- a/src/playlist/tree.c +++ b/src/playlist/tree.c @@ -152,8 +152,8 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root, { int i; var_SetInteger( p_playlist, "item-deleted", p_root->i_id ); - ARRAY_BSEARCH( p_playlist->all_items, ->p_input->i_id, int, - p_root->p_input->i_id, i ); + ARRAY_BSEARCH( p_playlist->all_items, ->i_id, int, + p_root->i_id, i ); if( i != -1 ) ARRAY_REMOVE( p_playlist->all_items, i );