[MPlayer-dev-eng] [PATCH] Add two breaks in the key handling of vo_sdl
Michael Mauch
michael.mauch at gmx.de
Tue Oct 23 00:04:20 CEST 2007
Hi,
with -vo sdl I get "A-V delay: 200ms" if I press the non-keypad-"+" only
once. This is because of a missing break statement in the key
handling of vo_sdl.c at SDLK_PLUS (and SDLK_7 is also missing a break).
Please see the attached tiny patch.
Regards...
Michael
-------------- next part --------------
Index: vo_sdl.c
===================================================================
--- vo_sdl.c (revision 24841)
+++ vo_sdl.c (working copy)
@@ -1274,8 +1274,8 @@
/*case SDLK_o: mplayer_put_key('o');break;
case SDLK_SPACE: mplayer_put_key(' ');break;
case SDLK_p: mplayer_put_key('p');break;*/
- case SDLK_7: mplayer_put_key(shift_key?'/':'7');
- case SDLK_PLUS: mplayer_put_key(shift_key?'*':'+');
+ case SDLK_7: mplayer_put_key(shift_key?'/':'7');break;
+ case SDLK_PLUS: mplayer_put_key(shift_key?'*':'+');break;
case SDLK_KP_PLUS: mplayer_put_key('+');break;
case SDLK_MINUS:
case SDLK_KP_MINUS: mplayer_put_key('-');break;
More information about the MPlayer-dev-eng
mailing list