[vlc-devel] [PATCH 4/5] macosx: Set sub-text-scale variable on playlist level

david.fuhrmann at gmail.com david.fuhrmann at gmail.com
Fri Jun 16 15:46:31 CEST 2017


From: David Fuhrmann <dfuhrmann at videolan.org>

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

refs #16185
---
 modules/gui/macosx/VLCMainMenu.m | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/gui/macosx/VLCMainMenu.m b/modules/gui/macosx/VLCMainMenu.m
index 98f7db0..30d831b 100644
--- a/modules/gui/macosx/VLCMainMenu.m
+++ b/modules/gui/macosx/VLCMainMenu.m
@@ -1036,12 +1036,7 @@ - (IBAction)addSubtitleFile:(id)sender
 - (void)switchSubtitleSize:(id)sender
 {
     int intValue = [sender tag];
-
-    vout_thread_t *vout = getVout();
-    if (vout) {
-        var_SetInteger(vout, "sub-text-scale", intValue);
-        vlc_object_release(vout);
-    }
+    var_SetInteger(pl_Get(getIntf()), "sub-text-scale", intValue);
 }
 
 
-- 
2.7.4 (Apple Git-66)



More information about the vlc-devel mailing list