]> git.sesse.net Git - vlc/commitdiff
* try to fix the pause-only hotkey
authorYoann Peronneau <yoann@videolan.org>
Tue, 6 Jun 2006 18:34:42 +0000 (18:34 +0000)
committerYoann Peronneau <yoann@videolan.org>
Tue, 6 Jun 2006 18:34:42 +0000 (18:34 +0000)
  this needs to be tested

modules/control/hotkeys.c

index 5f319495ab379debc4ccdabac3a3ee123f7e77b7..d5d32fb2909559e6ce1f52fc2dfd830bec8b9214 100644 (file)
@@ -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 )