From: Christophe Mutricy Date: Sat, 8 Jul 2006 21:19:17 +0000 (+0000) Subject: Fix compilation. It inserts the playlist only in tree view local. X-Git-Tag: 0.9.0-test0~10893 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4059579bc7de368c10642a47622a31ab745636a9;p=vlc Fix compilation. It inserts the playlist only in tree view local. --- diff --git a/modules/gui/skins2/commands/cmd_playlist.cpp b/modules/gui/skins2/commands/cmd_playlist.cpp index a598ba89fa..96abdf6284 100644 --- a/modules/gui/skins2/commands/cmd_playlist.cpp +++ b/modules/gui/skins2/commands/cmd_playlist.cpp @@ -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 ); } } diff --git a/modules/gui/wxwidgets/dialogs/playlist.cpp b/modules/gui/wxwidgets/dialogs/playlist.cpp index 16918c5932..e67411711e 100644 --- a/modules/gui/wxwidgets/dialogs/playlist.cpp +++ b/modules/gui/wxwidgets/dialogs/playlist.cpp @@ -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 ); } }