[vlc-devel] commit: Don't use var_CreateGet just to create variables. ( Rémi Duraffort )

git version control git at videolan.org
Fri Oct 31 23:29:31 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Oct 31 23:14:21 2008 +0100| [4e626b7f87ea07a7027975e7e760c559458810f2] | committer: Rémi Duraffort 

Don't use var_CreateGet just to create variables.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e626b7f87ea07a7027975e7e760c559458810f2
---

 src/playlist/engine.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 7c04b5d..2c2f57c 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -760,11 +760,11 @@ static void VariablesInit( playlist_t *p_playlist )
     var_SetInteger( p_playlist, "activity", 0 );
 
     /* Variables to control playback */
-    var_CreateGetBool( p_playlist, "play-and-stop" );
-    var_CreateGetBool( p_playlist, "play-and-exit" );
-    var_CreateGetBool( p_playlist, "random" );
-    var_CreateGetBool( p_playlist, "repeat" );
-    var_CreateGetBool( p_playlist, "loop" );
+    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 );
+    var_Create( p_playlist, "repeat", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
+    var_Create( p_playlist, "loop", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
 
     var_AddCallback( p_playlist, "random", RandomCallback, NULL );
 }




More information about the vlc-devel mailing list