]> git.sesse.net Git - vlc/commitdiff
Do not clutter the instance with the fullscreen status
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 10 Feb 2010 16:52:56 +0000 (18:52 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 10 Feb 2010 17:55:20 +0000 (19:55 +0200)
This fixes use of multiple inputs with LibVLC. This also fixes a
theoretical crash if you toggle fullscreen 2^32 times.

src/video_output/vout_intf.c

index 4577b1e57a8a9353e4d554a195a9140441f5d948..32115eb491261bf2e902b2162b6ac26a972bd62f 100644 (file)
@@ -984,10 +984,6 @@ static int FullscreenCallback( vlc_object_t *p_this, char const *psz_cmd,
         return VLC_SUCCESS; /* no-op */
     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;
     var_Set( p_vout, "intf-change", val );
     return VLC_SUCCESS;