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 5b04527..bc179a0 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 18381cb..9d87106 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 017f885..f9072e5 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 3ff4141..70ccf5a 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 )