[vlc-commits] Playlist: create playlist-autostart just once
Rémi Denis-Courmont
git at videolan.org
Mon Jun 20 18:56:12 CEST 2011
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 20 19:51:51 2011 +0300| [543827e1560d6549aa7344ad3c93334dee14b658] | committer: Rémi Denis-Courmont
Playlist: create playlist-autostart just once
(cherry picked from commit da59205e44a1d105ad020cd9a94f8e37e6a012c7)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=543827e1560d6549aa7344ad3c93334dee14b658
---
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 8a40f47..bb74f79 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -309,6 +309,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 ceae1a3..8082bd4 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