Changeset 5d88ca9cac32ff50e5af9744d43a4e0663536d76

Show
Ignore:
Timestamp:
17/06/05 19:16:43 (3 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1119028603 +0000
git-parent:

[cc47db8ef588a552ded04c7f82bdc67bc4dc3c9d]

git-author:
Christophe Massiot <massiot@videolan.org> 1119028603 +0000
Message:
  • modules/demux/playlist/playlist.c: New --no-playlist-autostart option.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/playlist/playlist.c

    rcc47db8 r5d88ca9  
    3434 * Module descriptor 
    3535 *****************************************************************************/ 
     36#define AUTOSTART_TEXT N_( "Auto start" ) 
     37#define AUTOSTART_LONGTEXT N_( "Automatically start the playlist when " \ 
     38    "it's loaded.\n" ) 
     39 
    3640vlc_module_begin(); 
    3741    add_shortcut( "playlist" ); 
    3842    set_category( CAT_INPUT ); 
    3943    set_subcategory( SUBCAT_INPUT_DEMUX ); 
     44 
     45    add_bool( "playlist-autostart", 1, NULL, AUTOSTART_TEXT, AUTOSTART_LONGTEXT, 
     46              VLC_FALSE ); 
    4047 
    4148    set_description( _("Old playlist open") ); 
     
    122129                     playlist_item_t **pp_item ) 
    123130{ 
    124      vlc_bool_t b_play; 
    125      if( p_playlist->status.p_item && &p_playlist->status.p_item->input == 
    126          ((input_thread_t *)p_demux->p_parent)->input.p_item ) 
     131     vlc_bool_t b_play = var_CreateGetBool( p_demux, "playlist-autostart" ); 
     132 
     133     if( b_play && p_playlist->status.p_item && 
     134             &p_playlist->status.p_item->input == 
     135                ((input_thread_t *)p_demux->p_parent)->input.p_item ) 
    127136     { 
    128137         msg_Dbg( p_playlist, "starting playlist playback" );