Commit 4e626b7f authored by Rémi Duraffort's avatar Rémi Duraffort

Don't use var_CreateGet just to create variables.

parent 5754275d
...@@ -760,11 +760,11 @@ static void VariablesInit( playlist_t *p_playlist ) ...@@ -760,11 +760,11 @@ static void VariablesInit( playlist_t *p_playlist )
var_SetInteger( p_playlist, "activity", 0 ); var_SetInteger( p_playlist, "activity", 0 );
/* Variables to control playback */ /* Variables to control playback */
var_CreateGetBool( p_playlist, "play-and-stop" ); var_Create( p_playlist, "play-and-stop", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_CreateGetBool( p_playlist, "play-and-exit" ); var_Create( p_playlist, "play-and-exit", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_CreateGetBool( p_playlist, "random" ); var_Create( p_playlist, "random", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_CreateGetBool( p_playlist, "repeat" ); var_Create( p_playlist, "repeat", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_CreateGetBool( p_playlist, "loop" ); var_Create( p_playlist, "loop", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_AddCallback( p_playlist, "random", RandomCallback, NULL ); var_AddCallback( p_playlist, "random", RandomCallback, NULL );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment