Changeset cb9d21f9ed44b9f5cf2a0cbeb9f7c6f937bb4086

Show
Ignore:
Timestamp:
10/08/06 21:21:25 (2 years ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1155237685 +0000
git-parent:

[7a305d417788d1559abfb43386af6a321e95f79d]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1155237685 +0000
Message:

Add "enqueue" command. Original patch by Greg Farell

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • THANKS

    r2ef0df8 rcb9d21f  
    6262Frank Chao <frank0624 at gmail.com> - Chinese Traditional translation 
    6363Fumio Nakayama <endymion at ca2.so-net.ne.jp> - Japanese translation 
     64Greg Farrell <greg at gregfarell dot org> - rc interface "enqueue" command 
    6465Gregory Hazel <ghazel at gmail dot com> - wxWidgets fixes and improvements 
    6566Goetz Waschk <waschk at informatik.uni-rostock dot de> - Mandrake packages 
  • modules/control/rc.c

    ra5df65a rcb9d21f  
    359359    var_Create( p_intf, "add", VLC_VAR_STRING | VLC_VAR_ISCOMMAND ); 
    360360    var_AddCallback( p_intf, "add", Playlist, NULL ); 
     361    var_Create( p_intf, "enqueue", VLC_VAR_STRING | VLC_VAR_ISCOMMAND ); 
     362    var_AddCallback( p_intf, "enqueue", Playlist, NULL ); 
    361363    var_Create( p_intf, "playlist", VLC_VAR_VOID | VLC_VAR_ISCOMMAND ); 
    362364    var_AddCallback( p_intf, "playlist", Playlist, NULL ); 
     
    873875    msg_rc(  "| "); 
    874876    msg_rc(_("| add XYZ  . . . . . . . . . . add XYZ to playlist")); 
     877    msg_rc(_("| enqueue XYZ  . . . . . . . queue XYZ to playlist")); 
    875878    msg_rc(_("| playlist . . .  show items currently in playlist")); 
    876879    msg_rc(_("| play . . . . . . . . . . . . . . . . play stream")); 
     
    12811284        } 
    12821285    } 
     1286    else if( !strcmp( psz_cmd, "enqueue" ) && 
     1287             newval.psz_string && *newval.psz_string ) 
     1288    { 
     1289        playlist_item_t *p_item = parse_MRL( p_intf, newval.psz_string ); 
     1290 
     1291        if( p_item ) 
     1292        { 
     1293            msg_rc( "trying to enqueue %s to playlist", newval.psz_string ); 
     1294            playlist_PlaylistAddInput( p_playlist, p_item, 
     1295                              PLAYLIST_APPEND, PLAYLIST_END ); 
     1296        } 
     1297    } 
    12831298    else if( !strcmp( psz_cmd, "playlist" ) ) 
    12841299    {