[vlc-devel] commit: Remove PLAYLIST_AUTOPLAY and use PLAYLIST_PLAY instead. Fix #1477 ( Rémi Duraffort )

git version control git at videolan.org
Sat Mar 8 21:04:43 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at via.ecp.fr> | Sat Mar  8 20:54:34 2008 +0100| [7647c5af7deab29b3386fab5cdac9586bf0a277e]

Remove PLAYLIST_AUTOPLAY and use PLAYLIST_PLAY instead. Fix #1477

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7647c5af7deab29b3386fab5cdac9586bf0a277e
---

 include/vlc_common.h                 |    1 -
 modules/gui/macosx/intf.m            |    2 +-
 modules/gui/skins2/src/skin_main.cpp |    2 +-
 src/playlist/control.c               |    8 --------
 4 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 5b04527..bc179a0 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -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*/
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 18381cb..9d87106 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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;
diff --git a/modules/gui/skins2/src/skin_main.cpp b/modules/gui/skins2/src/skin_main.cpp
index 017f885..f9072e5 100644
--- a/modules/gui/skins2/src/skin_main.cpp
+++ b/modules/gui/skins2/src/skin_main.cpp
@@ -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 );
         }
     }
diff --git a/src/playlist/control.c b/src/playlist/control.c
index 3ff4141..70ccf5a 100644
--- a/src/playlist/control.c
+++ b/src/playlist/control.c
@@ -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 )




More information about the vlc-devel mailing list