[vlc-devel] commit: DeleteInner() : remove deleted items from current items array ( Rafaël Carré )

git version control git at videolan.org
Thu Sep 24 16:13:58 CEST 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Sep 24 16:12:45 2009 +0200| [de5b29850948bfdeadab81b5c95900c98957568d] | committer: Rafaël Carré 

DeleteInner() : remove deleted items from current items array

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de5b29850948bfdeadab81b5c95900c98957568d
---

 src/playlist/item.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/playlist/item.c b/src/playlist/item.c
index d9ea120..94c27b3 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -902,6 +902,10 @@ static int DeleteInner( playlist_t * p_playlist, playlist_item_t *p_item,
         set_current_status_item( p_playlist, NULL );
     }
 
+    ARRAY_BSEARCH( p_playlist->current,->i_id, int, i_id, i );
+    if( i != -1 )
+        ARRAY_REMOVE( p_playlist->current, i );
+
     PL_DEBUG( "deleting item `%s'", p_item->p_input->psz_name );
 
     /* Remove the item from its parent */




More information about the vlc-devel mailing list