Changeset 5d88ca9cac32ff50e5af9744d43a4e0663536d76
- 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
| rcc47db8 |
r5d88ca9 |
|
| 34 | 34 | * Module descriptor |
|---|
| 35 | 35 | *****************************************************************************/ |
|---|
| | 36 | #define AUTOSTART_TEXT N_( "Auto start" ) |
|---|
| | 37 | #define AUTOSTART_LONGTEXT N_( "Automatically start the playlist when " \ |
|---|
| | 38 | "it's loaded.\n" ) |
|---|
| | 39 | |
|---|
| 36 | 40 | vlc_module_begin(); |
|---|
| 37 | 41 | add_shortcut( "playlist" ); |
|---|
| 38 | 42 | set_category( CAT_INPUT ); |
|---|
| 39 | 43 | set_subcategory( SUBCAT_INPUT_DEMUX ); |
|---|
| | 44 | |
|---|
| | 45 | add_bool( "playlist-autostart", 1, NULL, AUTOSTART_TEXT, AUTOSTART_LONGTEXT, |
|---|
| | 46 | VLC_FALSE ); |
|---|
| 40 | 47 | |
|---|
| 41 | 48 | set_description( _("Old playlist open") ); |
|---|
| … | … | |
| 122 | 129 | playlist_item_t **pp_item ) |
|---|
| 123 | 130 | { |
|---|
| 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 ) |
|---|
| 127 | 136 | { |
|---|
| 128 | 137 | msg_Dbg( p_playlist, "starting playlist playback" ); |
|---|