[vlc-devel] commit: hotkeys: don't set key-action when we didn' t find a suitable action in this particular set. (Derk-Jan Hartman )

git version control git at videolan.org
Sun Aug 10 17:56:35 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Sun Aug 10 17:58:47 2008 +0200| [2feb06336c366b0caa197c3d4ddc0f7a1e46900f] | committer: Derk-Jan Hartman 

hotkeys: don't set key-action when we didn't find a suitable action in this particular set.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2feb06336c366b0caa197c3d4ddc0f7a1e46900f
---

 modules/control/hotkeys.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index f79b0ea..22a0887 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -894,7 +894,9 @@ static int SpecialKeyEvent( vlc_object_t *libvlc, char const *psz_var,
           return VLC_SUCCESS;
     }
 
-    return PutAction( p_intf, i_action );
+    if( i_action )
+        return PutAction( p_intf, i_action );
+    return VLC_SUCCESS;
 }
 
 /*****************************************************************************




More information about the vlc-devel mailing list