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

Minor code simplification

parent 6c464c3c
......@@ -1119,15 +1119,9 @@ static int FullscreenCallback( vlc_object_t *p_this, char const *psz_cmd,
/* Disable "always on top" in fullscreen mode */
var_Get( p_vout, "video-on-top", &val );
if( newval.b_bool && val.b_bool )
{
val.b_bool = VLC_FALSE;
vout_Control( p_vout, VOUT_SET_STAY_ON_TOP, val.b_bool );
}
else if( !newval.b_bool && val.b_bool )
{
vout_Control( p_vout, VOUT_SET_STAY_ON_TOP, val.b_bool );
}
if( val.b_bool )
vout_Control( p_vout, VOUT_SET_STAY_ON_TOP,
(vlc_bool_t)!newval.b_bool );
val.b_bool = VLC_TRUE;
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