]> git.sesse.net Git - vlc/commitdiff
hotkeys.c: Don't continue looking once the action for your key is
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 1 May 2007 10:10:34 +0000 (10:10 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 1 May 2007 10:10:34 +0000 (10:10 +0000)
found. Should save a few precious cycles

modules/control/hotkeys.c

index 6f62227546aec161a47adaa3d1ed35b3aac15e43..1df6d8d6adb0fb9dbf9083694d19457e5ed312f3 100644 (file)
@@ -174,6 +174,7 @@ static void Run( intf_thread_t *p_intf )
                 i_times  = p_hotkeys[i].i_times;
                 /* times key pressed within max. delta time */
                 p_hotkeys[i].i_times = 0;
+                break;
             }
         }