[vlc-commits] Playlist: create playlist-autostart just once
Rémi Denis-Courmont
git at videolan.org
Mon Jun 20 18:54:39 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 20 19:51:51 2011 +0300| [da59205e44a1d105ad020cd9a94f8e37e6a012c7] | committer: Rémi Denis-Courmont
Playlist: create playlist-autostart just once
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=da59205e44a1d105ad020cd9a94f8e37e6a012c7
---
src/playlist/engine.c | 1 +
src/playlist/item.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 23811f2..8e7a46a 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -397,6 +397,7 @@ static void VariablesInit( playlist_t *p_playlist )
var_SetInteger( p_playlist, "activity", 0 );
/* Variables to control playback */
+ var_Create( p_playlist, "playlist-autostart", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_Create( p_playlist, "play-and-stop", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_Create( p_playlist, "play-and-exit", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_Create( p_playlist, "random", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 29940fc..fd975d1 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -64,7 +64,7 @@ static void input_item_add_subitem_tree ( const vlc_event_t * p_event,
assert( p_item != NULL );
bool b_current = get_current_status_item( p_playlist ) == p_item;
- bool b_autostart = var_CreateGetBool( p_playlist, "playlist-autostart" );
+ bool b_autostart = var_GetBool( p_playlist, "playlist-autostart" );
bool b_stop = p_item->i_flags & PLAYLIST_SUBITEM_STOP_FLAG;
bool b_flat = false;
More information about the vlc-commits
mailing list