]> git.sesse.net Git - vlc/commitdiff
Remove PLAYLIST_AUTOPLAY and use PLAYLIST_PLAY instead. Fix #1477
authorRémi Duraffort <ivoire@via.ecp.fr>
Sat, 8 Mar 2008 19:54:34 +0000 (20:54 +0100)
committerRafaël Carré <funman@videolan.org>
Sat, 8 Mar 2008 20:04:08 +0000 (21:04 +0100)
Signed-off-by: Rafaël Carré <funman@videolan.org>
include/vlc_common.h
modules/gui/macosx/intf.m
modules/gui/skins2/src/skin_main.cpp
src/playlist/control.c

index 5b0452707bb36319f521f8d327cc2145fcc7d7f8..bc179a0f4b075ea753cd43ce0f1009c8f97733e1 100644 (file)
@@ -200,7 +200,6 @@ typedef struct msg_subscription_t msg_subscription_t;
  */
 typedef enum {
     PLAYLIST_PLAY,      /**< No arg.                            res=can fail*/
-    PLAYLIST_AUTOPLAY,  /**< No arg.                            res=cant fail*/
     PLAYLIST_VIEWPLAY,  /**< arg1= playlist_item_t*,*/
                         /**  arg2 = playlist_item_t*          , res=can fail */
     PLAYLIST_PAUSE,     /**< No arg                             res=can fail*/
index 18381cb43173397796c6e05d2e64c165f5ad65d4..9d87106c8d9b9b008988e7e04c6227c889c4b076 100644 (file)
@@ -553,7 +553,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     /* Check if we need to start playing */
     if( p_intf->b_play )
     {
-        playlist_Control( p_playlist, PLAYLIST_AUTOPLAY, VLC_FALSE );
+        playlist_Control( p_playlist, PLAYLIST_PLAY, VLC_FALSE );
     }
     var_Create( p_playlist, "fullscreen", VLC_VAR_BOOL | VLC_VAR_DOINHERIT);
     val.b_bool = VLC_FALSE;
index 017f885af7f8dd7320bddf5ffd9a79f685e25699..f9072e5a6b1363f95d6b48cd131eff72efd9f704 100644 (file)
@@ -262,7 +262,7 @@ static void Run( intf_thread_t *p_intf )
                                            FIND_ANYWHERE );
         if( p_playlist )
         {
-            playlist_Control( p_playlist, PLAYLIST_AUTOPLAY, VLC_FALSE );
+            playlist_Control( p_playlist, PLAYLIST_PLAY, VLC_FALSE );
             vlc_object_release( p_playlist );
         }
     }
index 3ff414102bf41d26ffdeeffafce9868499fee1db..70ccf5a7bab7d1ba1cf18bf236f0d249e9a21ca7 100644 (file)
@@ -122,14 +122,6 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
         }
         break;
 
-    case PLAYLIST_AUTOPLAY:
-        // AUTOPLAY is an ugly hack for initial status.
-        // Hopefully it will disappear
-        p_playlist->status.i_status = PLAYLIST_RUNNING;
-        p_playlist->request.p_node = p_playlist->status.p_node;
-        p_playlist->request.b_request = VLC_FALSE;
-        break;
-
     case PLAYLIST_PAUSE:
         val.i_int = 0;
         if( p_playlist->p_input )