]> git.sesse.net Git - vlc/commitdiff
(no commit message)
authorXavier Martin <titus@videolan.org>
Sun, 7 Mar 2004 15:04:26 +0000 (15:04 +0000)
committerXavier Martin <titus@videolan.org>
Sun, 7 Mar 2004 15:04:26 +0000 (15:04 +0000)
modules/control/http.c
share/http/index.html

index d66426630b6eb1e2563203b8b803dcb9fe64158c..c921f7fec80c6f8d4db9a9a842c73dad7d813bf1 100644 (file)
@@ -2,7 +2,7 @@
  * http.c :  http mini-server ;)
  *****************************************************************************
  * Copyright (C) 2001-2004 VideoLAN
- * $Id: http.c,v 1.55 2004/03/03 14:22:47 fenrir Exp $
+ * $Id$
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *          Laurent Aimar <fenrir@via.ecp.fr>
@@ -1798,7 +1798,11 @@ static void MacroDo( httpd_file_sys_t *p_args,
                     {
                         playlist_SortAuthor( p_sys->p_playlist , i_order );
                         msg_Dbg( p_intf, "requested playlist sort by author (%d)" , i_order );
-                    }
+                    } else if( !strcmp( type , "Shuffle" ) )
+                    {
+                        playlist_Sort( p_sys->p_playlist , SORT_RANDOM, ORDER_NORMAL );
+                        msg_Dbg( p_intf, "requested playlist shuffle");
+                    } 
 
                     break;
                 }
index 07b72902ae3b141d1d5948eff6538de52f8fd88a..03b5ebbd7cf343b842def76e198d225522e6e840 100644 (file)
@@ -96,6 +96,7 @@
               <option value="title">title</option>
               <option value="group">group</option>
               <option value="author">author</option>
+             <option value="Shuffle">Shuffle</option>
             </select> with
             <select name="order">
               <option value="0">normal order</option>