]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_playlist.cpp
Fix compilation. It inserts the playlist only in tree view local.
[vlc] / modules / gui / skins2 / commands / cmd_playlist.cpp
index 781243eef901795ec33e45a7ef3c635699d78400..96abdf6284f02170575064fcf64ee6478acb15b1 100644 (file)
@@ -1,11 +1,11 @@
 /*****************************************************************************
  * cmd_playlist.cpp
  *****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 the VideoLAN team
  * $Id$
  *
  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
- *          Olivier Teulière <ipkiss@via.ecp.fr>
+ *          Olivier Teulière <ipkiss@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 #include "cmd_playlist.hpp"
@@ -33,18 +33,6 @@ void CmdPlaylistDel::execute()
 }
 
 
-void CmdPlaylistSort::execute()
-{
-    // XXX add the mode and type
-    playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
-    if( pPlaylist != NULL )
-    {
-        playlist_Sort( pPlaylist, SORT_TITLE, ORDER_NORMAL );
-    }
-
-}
-
-
 void CmdPlaylistNext::execute()
 {
     playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
@@ -106,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 );
     }
 }
 
@@ -118,7 +108,8 @@ void CmdPlaylistSave::execute()
     {
         // FIXME: when the PLS export will be working, we'll need to remove
         // this hardcoding...
-        playlist_Export( pPlaylist, m_file.c_str(), "export-m3u" );
+        msg_Err( getIntf(), "need to fix playlist save" );
+//        playlist_Export( pPlaylist, m_file.c_str(), "export-m3u" );
     }
 }