playlist_NodeDelete(): we want to delete a specific playlist_item_t*, not a playlist_...
authorRafaël Carré <funman@videolan.org>
Wed, 17 Oct 2007 15:51:00 +0000 (15:51 +0000)
committerRafaël Carré <funman@videolan.org>
Wed, 17 Oct 2007 15:51:00 +0000 (15:51 +0000)
src/playlist/tree.c

index 68b2228..27d94ad 100644 (file)
@@ -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 );