Commit 4059579b authored by Christophe Mutricy's avatar Christophe Mutricy

Fix compilation. It inserts the playlist only in tree view local.

parent 2adf9ed0
...@@ -94,7 +94,9 @@ void CmdPlaylistLoad::execute() ...@@ -94,7 +94,9 @@ void CmdPlaylistLoad::execute()
playlist_t *pPlaylist = getIntf()->p_sys->p_playlist; playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
if( pPlaylist != NULL ) 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 );
} }
} }
......
...@@ -219,6 +219,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ): ...@@ -219,6 +219,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
i_items_to_append = 0; i_items_to_append = 0;
p_playlist = (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, p_playlist = (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE ); FIND_ANYWHERE );
msg_Err(p_intf, "p_playlist= 0x%x", p_playlist);
if( p_playlist == NULL ) return; if( p_playlist == NULL ) return;
SetIcon( *p_intf->p_sys->p_icon ); SetIcon( *p_intf->p_sys->p_icon );
...@@ -978,7 +979,9 @@ void Playlist::OnOpen( wxCommandEvent& WXUNUSED(event) ) ...@@ -978,7 +979,9 @@ void Playlist::OnOpen( wxCommandEvent& WXUNUSED(event) )
if( dialog.ShowModal() == wxID_OK ) 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 );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment