Commit a30f9045 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: use type-checked variable setters

parent 088c1ccc
...@@ -185,8 +185,8 @@ void input_ControlVarInit ( input_thread_t *p_input ) ...@@ -185,8 +185,8 @@ void input_ControlVarInit ( input_thread_t *p_input )
/* Delay */ /* Delay */
var_Create( p_input, "audio-delay", VLC_VAR_TIME ); var_Create( p_input, "audio-delay", VLC_VAR_TIME );
val.i_time = INT64_C(1000) * var_GetInteger( p_input, "audio-desync" ); var_SetTime( p_input, "audio-delay",
var_Change( p_input, "audio-delay", VLC_VAR_SETVALUE, &val, NULL ); 1000 * var_GetInteger( p_input, "audio-desync" ) );
var_Create( p_input, "spu-delay", VLC_VAR_TIME ); var_Create( p_input, "spu-delay", VLC_VAR_TIME );
/* Video ES */ /* Video ES */
...@@ -205,8 +205,7 @@ void input_ControlVarInit ( input_thread_t *p_input ) ...@@ -205,8 +205,7 @@ void input_ControlVarInit ( input_thread_t *p_input )
var_Change( p_input, "spu-es", VLC_VAR_SETTEXT, &text, NULL ); var_Change( p_input, "spu-es", VLC_VAR_SETTEXT, &text, NULL );
var_Create( p_input, "spu-choice", VLC_VAR_INTEGER ); var_Create( p_input, "spu-choice", VLC_VAR_INTEGER );
val.i_int = -1; var_SetInteger( p_input, "spu-choice", -1 );
var_Change( p_input, "spu-choice", VLC_VAR_SETVALUE, &val, NULL );
/* Special read only objects variables for intf */ /* Special read only objects variables for intf */
var_Create( p_input, "bookmarks", VLC_VAR_STRING | VLC_VAR_DOINHERIT ); var_Create( p_input, "bookmarks", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
......
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