]> git.sesse.net Git - vlc/commitdiff
* Remove vlc:run (externrun is removed from SVN) and vlc:loop (we have --loop).
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 10 Aug 2005 16:18:18 +0000 (16:18 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 10 Aug 2005 16:18:18 +0000 (16:18 +0000)
  Playlist item commands are soooo dirty :D

modules/misc/dummy/input.c

index 14f5bf7db821e9a8dcc63e5d878103fe60d6b486..9852ce93d1e2b468d0ceff38ecb94bcd4dcb052c 100644 (file)
@@ -124,9 +124,7 @@ enum
 {
     COMMAND_NOP  = 0,
     COMMAND_QUIT = 1,
-    COMMAND_LOOP = 2,
     COMMAND_PAUSE= 3,
-    COMMAND_RUN  = 4,
 };
 
 static int Demux( demux_t * );
@@ -165,14 +163,6 @@ int E_(OpenDemux) ( vlc_object_t *p_this )
         return VLC_SUCCESS;
     }
 
-    /* Check for a "vlc:loop" command */
-    if( i_len == 4 && !strncasecmp( psz_name, "loop", 4 ) )
-    {
-        msg_Info( p_demux, "command `loop'" );
-        p_sys->i_command = COMMAND_LOOP;
-        return VLC_SUCCESS;
-    }
-
     /* Check for a "vlc:pause:***" command */
     if( i_len > 6 && !strncasecmp( psz_name, "pause:", 6 ) )
     {
@@ -183,16 +173,6 @@ int E_(OpenDemux) ( vlc_object_t *p_this )
         return VLC_SUCCESS;
     }
     
-    /* Check for a "vlc:run:***" command */
-    if ( i_len > 4 && !strncasecmp( psz_name, "run:", 4 ) )
-    {
-       p_sys->psz_command = malloc( i_len - 4 );
-       strcpy( p_sys->psz_command, psz_name + 4 );
-       msg_Info( p_demux, "command `run program %s'", p_sys->psz_command );
-       p_sys->i_command = COMMAND_RUN;
-       return VLC_SUCCESS;
-    } 
-
     msg_Err( p_demux, "unknown command `%s'", psz_name );
 
     free( p_sys );
@@ -232,10 +212,6 @@ static int Demux( demux_t *p_demux )
             b_eof = p_demux->p_vlc->b_die = VLC_TRUE;
             break;
 
-        case COMMAND_LOOP:
-            playlist_Goto( p_playlist, 0 );
-            break;
-
         case COMMAND_PAUSE:
             if( mdate() >= p_sys->expiration )
                 b_eof = VLC_TRUE;
@@ -243,12 +219,6 @@ static int Demux( demux_t *p_demux )
                 msleep( 10000 );
             break;
         
-        case COMMAND_RUN:
-            var_SetString( p_playlist, "run-program-command", p_sys->psz_command );
-            free( p_sys->psz_command );
-            b_eof = VLC_TRUE;
-            break;
-
         case COMMAND_NOP:
         default:
             b_eof = VLC_TRUE;