From: Derk-Jan Hartman Date: Fri, 8 Oct 2004 00:07:48 +0000 (+0000) Subject: * hotkeys.c: change fullscreen setting even if there is no vout X-Git-Tag: 0.8.0~158 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=997ef25182ffbd986682edc85e81adbe921ac1dd;p=vlc * hotkeys.c: change fullscreen setting even if there is no vout bigben: this fixes that last little problem you had with the 'fullscreen button' --- diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index 2dfea430af..a74278b493 100755 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -311,10 +311,24 @@ static void Run( intf_thread_t *p_intf ) vout_OSDMessage( p_intf, DEFAULT_CHAN, "Subtitle delay %i ms", (int)(i_delay/1000) ); } - else if( i_action == ACTIONID_FULLSCREEN && p_vout ) + else if( i_action == ACTIONID_FULLSCREEN ) { - var_Get( p_vout, "fullscreen", &val ); val.b_bool = !val.b_bool; - var_Set( p_vout, "fullscreen", val ); + if( p_vout ) + { + var_Get( p_vout, "fullscreen", &val ); val.b_bool = !val.b_bool; + var_Set( p_vout, "fullscreen", val ); + } + else + { + p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, + FIND_ANYWHERE ); + if( p_playlist ) + { + var_Get( p_playlist, "fullscreen", &val ); val.b_bool = !val.b_bool; + var_Set( p_playlist, "fullscreen", val ); + vlc_object_release( p_playlist ); + } + } } else if( i_action == ACTIONID_PLAY ) {