Fixes wxwidgets compilation
authorRafaël Carré <funman@videolan.org>
Sun, 19 Nov 2006 16:09:16 +0000 (16:09 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 19 Nov 2006 16:09:16 +0000 (16:09 +0000)
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/wizard.cpp
modules/gui/wxwidgets/playlist_manager.cpp

index ebcd71c..6ce94cf 100644 (file)
@@ -907,7 +907,7 @@ void Playlist::DeleteTreeItem( wxTreeItemId item )
 
 void Playlist::DeleteItem( int item_id )
 {
-    playlist_DeleteAllFromInput( p_playlist, item_id );
+    playlist_DeleteFromInput( p_playlist, item_id, VLC_TRUE );
 }
 
 void Playlist::DeleteNode( playlist_item_t *p_item )
index a59a0a7..c2d0446 100644 (file)
@@ -721,8 +721,7 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
                                       VLC_OBJECT_PLAYLIST, FIND_ANYWHERE);
             if( p_playlist )
             {
-                playlist_item_t * p_item = playlist_LockItemGetById(
-                                                   p_playlist, (int)data );
+                playlist_item_t * p_item = playlist_ItemGetById(                                                   p_playlist, (int)data, VLC_TRUE );
                 if( p_item )
                 {
                     p_parent->SetMrl( (const char*)p_item->p_input->psz_uri );
index b6ddce5..334a5ae 100644 (file)
@@ -281,7 +281,8 @@ void PlaylistManager::UpdateTreeItem( wxTreeItemId item )
 
     LockPlaylist( p_intf->p_sys, p_playlist );
     playlist_item_t *p_item =
-        playlist_ItemGetById( p_playlist, ((PlaylistItem *)p_data)->i_id );
+        playlist_ItemGetById( p_playlist, ((PlaylistItem *)p_data)->i_id,
+                VLC_TRUE );
     if( !p_item )
     {
         UnlockPlaylist( p_intf->p_sys, p_playlist );
@@ -354,7 +355,7 @@ void PlaylistManager::AppendItem( wxCommandEvent& event )
     node = FindItem( treectrl->GetRootItem(), p_add->i_node );
     if( !node.IsOk() ) goto update;
 
-    p_item = playlist_ItemGetById( p_playlist, p_add->i_item );
+    p_item = playlist_ItemGetById( p_playlist, p_add->i_item, VLC_TRUE );
     if( !p_item ) goto update;
 
     item = FindItem( treectrl->GetRootItem(), p_add->i_item );
@@ -495,8 +496,8 @@ void PlaylistManager::OnActivateItem( wxTreeEvent& event )
     if( !p_wxparent ) return;
 
     LockPlaylist( p_intf->p_sys, p_playlist );
-    p_item = playlist_ItemGetById( p_playlist, p_wxitem->i_id );
-    p_node = playlist_ItemGetById( p_playlist, p_wxparent->i_id );
+    p_item = playlist_ItemGetById( p_playlist, p_wxitem->i_id, VLC_TRUE );
+    p_node = playlist_ItemGetById( p_playlist, p_wxparent->i_id, VLC_TRUE );
     if( !p_item || p_item->i_children >= 0 )
     {
         p_node = p_item;