From: Yoann Peronneau Date: Tue, 6 Jun 2006 18:34:42 +0000 (+0000) Subject: * try to fix the pause-only hotkey X-Git-Tag: 0.9.0-test0~11056 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b81187776b39942efca2a5fdd0253946e4aef1a0;p=vlc * try to fix the pause-only hotkey this needs to be tested --- diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index 5f319495ab..d5d32fb290 100644 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -379,11 +379,15 @@ static void Run( intf_thread_t *p_intf ) if( i_action == ACTIONID_PAUSE ) { - ClearChannels( p_intf, p_vout ); - vout_OSDIcon( VLC_OBJECT( p_intf ), DEFAULT_CHAN, - OSD_PAUSE_ICON ); - val.i_int = PAUSE_S; - var_Set( p_input, "state", val ); + var_Get( p_input, "state", &val ); + if( val.i_int != PAUSE_S ) + { + ClearChannels( p_intf, p_vout ); + vout_OSDIcon( VLC_OBJECT( p_intf ), DEFAULT_CHAN, + OSD_PAUSE_ICON ); + val.i_int = PAUSE_S; + var_Set( p_input, "state", val ); + } } else if( i_action == ACTIONID_JUMP_BACKWARD_EXTRASHORT && b_seekable )