[vlc-commits] hotkeys: fix SPU scaling limits

Romain Vimont git at videolan.org
Thu Apr 19 13:24:24 CEST 2018


vlc/vlc-3.0 | branch: master | Romain Vimont <rom1v at videolabs.io> | Thu Apr 19 12:33:19 2018 +0200| [2b8e6c4334ad4fb63a5eaea54d6937767585c1df] | 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 <hugo at beauzee.fr>

(cherry picked from commit 35a5a0ab2448598a61cc38079a82b83ee51de82e)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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 690a4e5e6c..95829efb2f 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 );



More information about the vlc-commits mailing list