Commit 122a7d86 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Remove playlist items from the "items" array when they are deleted

Note that the only aim of this array seems to be counting the non-node items
parent 7bc28eeb
......@@ -852,6 +852,10 @@ static int DeleteInner( playlist_t * p_playlist, playlist_item_t *p_item,
if( i != -1 )
ARRAY_REMOVE( p_playlist->all_items, i );
ARRAY_BSEARCH( p_playlist->items,->i_id, int, i_id, i );
if( i != -1 )
ARRAY_REMOVE( p_playlist->items, i );
/* Check if it is the current item */
if( p_playlist->status.p_item == p_item )
Supports Markdown
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