Commit 67e1dabc authored by Thomas Guillem's avatar Thomas Guillem

input: ensure that viewpoint structs are read only from callbacks

parent 9d4aaaa8
......@@ -1986,6 +1986,9 @@ static bool Control( input_thread_t *p_input,
for( size_t i = 0; i < i_vout; ++i )
{
var_SetAddress( pp_vout[i], "viewpoint", &priv->viewpoint );
/* This variable can only be read from callbacks */
var_Change( pp_vout[i], "viewpoint", VLC_VAR_SETVALUE,
&(vlc_value_t) { .p_address = NULL }, NULL );
vlc_object_release( pp_vout[i] );
}
free( pp_vout );
......@@ -1995,6 +1998,9 @@ static bool Control( input_thread_t *p_input,
{
var_SetAddress( p_aout, "viewpoint", &priv->viewpoint );
/* This variable can only be read from callbacks */
var_Change( p_aout, "viewpoint", VLC_VAR_SETVALUE,
&(vlc_value_t) { .p_address = NULL }, NULL );
vlc_object_release( p_aout );
}
break;
......
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