Commit 7343174b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Do not clutter the instance with the fullscreen status

This fixes use of multiple inputs with LibVLC. This also fixes a
theoretical crash if you toggle fullscreen 2^32 times.
parent 40d199a4
...@@ -984,10 +984,6 @@ static int FullscreenCallback( vlc_object_t *p_this, char const *psz_cmd, ...@@ -984,10 +984,6 @@ static int FullscreenCallback( vlc_object_t *p_this, char const *psz_cmd,
return VLC_SUCCESS; /* no-op */ return VLC_SUCCESS; /* no-op */
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE; p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
/* Modify libvlc as well because the vout might have to be restarted */
var_Create( p_vout->p_libvlc, "fullscreen", VLC_VAR_BOOL );
var_Set( p_vout->p_libvlc, "fullscreen", newval );
val.b_bool = true; val.b_bool = true;
var_Set( p_vout, "intf-change", val ); var_Set( p_vout, "intf-change", val );
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