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

Do not abuse global!

parent dd5f0b9f
......@@ -153,9 +153,8 @@ static int Open( vlc_object_t *p_this )
event_handler, p_dec );
/* Create the var on vlc_global. */
p_sys->i_wanted_page = var_CreateGetInteger( p_dec->p_libvlc_global,
"vbi-page" );
var_AddCallback( p_dec->p_libvlc_global, "vbi-page",
p_sys->i_wanted_page = var_CreateGetInteger( p_dec->p_libvlc, "vbi-page" );
var_AddCallback( p_dec->p_libvlc, "vbi-page",
RequestPage, p_sys );
p_sys->b_opaque = var_CreateGetBool( p_dec, "vbi-opaque" );
......
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