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

David Fuhrmann git at videolan.org
Sun Jun 18 22:58:03 CEST 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Fri Jun 16 15:24:11 2017 +0200| [76f14c8f315a26b778a4a1b84ed45e9c7b3942b2] | committer: David Fuhrmann

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

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

refs #16185

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

 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 98f7db0ae8..30d831b5e5 100644
--- a/modules/gui/macosx/VLCMainMenu.m
+++ b/modules/gui/macosx/VLCMainMenu.m
@@ -1036,12 +1036,7 @@
 - (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);
 }
 
 



More information about the vlc-commits mailing list