vlc | branch: master | Romain Vimont <[email protected]> | Thu Apr 19 12:33:19 
2018 +0200| [35a5a0ab2448598a61cc38079a82b83ee51de82e] | committer: Hugo 
Beauzée-Luyssen

hotkeys: fix SPU scaling limits

Otherwise it's impossible to reset the value to 100%
Signed-off-by: Hugo Beauzée-Luyssen <[email protected]>

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

 modules/control/hotkeys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index ad23bf9e26..2deaa23426 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -1349,7 +1349,7 @@ static int PutAction( intf_thread_t *p_intf, 
input_thread_t *p_input,
                 {
                     i_scale = var_GetInteger( p_playlist, "sub-text-scale" );
                     i_scale += ((i_action == ACTIONID_SUBTITLE_TEXT_SCALE_UP) 
? 1 : -1) * 25;
-                    i_scale = VLC_CLIP( i_scale, 10, 500 );
+                    i_scale = VLC_CLIP( i_scale, 25, 500 );
                 }
                 var_SetInteger( p_playlist, "sub-text-scale", i_scale );
                 DisplayMessage( p_vout, _( "Subtitle text scale %d%%" ), 
i_scale );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to