[vlc-commits] hotkeys: Set sub-text-scale variable on playlist level

David Fuhrmann git at videolan.org
Sun Jun 18 22:57:59 CEST 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Fri Jun 16 15:22:57 2017 +0200| [d3e682d299846679efaa8bd12bfb0960b8451797] | committer: David Fuhrmann

hotkeys: Set sub-text-scale variable on playlist level

This makes sure it outlives vout instances and is valid for the
whole playlist session.
hotkeys: Set sub-text-scale variable on playlist level

This makes sure it outlives vout instances and is valid for the
whole playlist session.

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

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

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 4f6611cf09..7021e9c2d9 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -1343,11 +1343,11 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
                 }
                 else
                 {
-                    i_scale = var_GetInteger( p_vout, "sub-text-scale" );
+                    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 );
                 }
-                var_SetInteger( p_vout, "sub-text-scale", i_scale );
+                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