]> git.sesse.net Git - vlc/commitdiff
Fix compilation. It inserts the playlist only in tree view local.
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 8 Jul 2006 21:19:17 +0000 (21:19 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 8 Jul 2006 21:19:17 +0000 (21:19 +0000)
modules/gui/skins2/commands/cmd_playlist.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp

index a598ba89fad1b9ccbadae405cbeb63b364304efb..96abdf6284f02170575064fcf64ee6478acb15b1 100644 (file)
@@ -94,7 +94,9 @@ void CmdPlaylistLoad::execute()
     playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
     if( pPlaylist != NULL )
     {
-        playlist_Import( pPlaylist, m_file.c_str() );
+        /*FIXME: Where do we want ot insert ?*/
+        playlist_Import( pPlaylist, m_file.c_str(),
+                         pPlaylist->p_local_category, VLC_TRUE );
     }
 }
 
index 16918c59327feb005e6e16f3d3bdd5bde6cd2cdc..e67411711e75c8bba3204bb2509c0ca16d06cce2 100644 (file)
@@ -219,6 +219,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
     i_items_to_append = 0;
     p_playlist = (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                                 FIND_ANYWHERE );
+    msg_Err(p_intf, "p_playlist= 0x%x", p_playlist);
     if( p_playlist == NULL ) return;
 
     SetIcon( *p_intf->p_sys->p_icon );
@@ -978,7 +979,9 @@ void Playlist::OnOpen( wxCommandEvent& WXUNUSED(event) )
 
     if( dialog.ShowModal() == wxID_OK )
     {
-        playlist_Import( p_playlist, dialog.GetPath().mb_str() );
+        playlist_Import( p_playlist, dialog.GetPath().mb_str(),
+                         /*FIXME: where do we want to insert ? */
+                         p_playlist->p_local_category, VLC_TRUE );
     }
 }