Commit 664b1e97 authored by Rafaël Carré's avatar Rafaël Carré

playlist_NodeDelete(): we want to delete a specific playlist_item_t*, not a...

playlist_NodeDelete(): we want to delete a specific playlist_item_t*, not a playlist_item_t* associated to a specific input_item_t*
parent 6c93b8b7
...@@ -152,8 +152,8 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root, ...@@ -152,8 +152,8 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
{ {
int i; int i;
var_SetInteger( p_playlist, "item-deleted", p_root->i_id ); var_SetInteger( p_playlist, "item-deleted", p_root->i_id );
ARRAY_BSEARCH( p_playlist->all_items, ->p_input->i_id, int, ARRAY_BSEARCH( p_playlist->all_items, ->i_id, int,
p_root->p_input->i_id, i ); p_root->i_id, i );
if( i != -1 ) if( i != -1 )
ARRAY_REMOVE( p_playlist->all_items, i ); ARRAY_REMOVE( p_playlist->all_items, i );
......
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