[vlc-devel] commit: Updated macosx intf after teletext-es change. (Laurent Aimar )

git version control git at videolan.org
Fri Feb 13 23:07:51 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Feb 13 22:33:58 2009 +0100| [83010dc8fc0fcb8a9c0a1485092943d99b0139c4] | committer: Laurent Aimar 

Updated macosx intf after teletext-es change.

It is untested.

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

 modules/gui/macosx/controls.m |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/modules/gui/macosx/controls.m b/modules/gui/macosx/controls.m
index 0d50a5b..ecbf79e 100644
--- a/modules/gui/macosx/controls.m
+++ b/modules/gui/macosx/controls.m
@@ -1041,15 +1041,8 @@
     if( [[o_mi title] isEqualToString: _NS("Normal Size")] );
     {
         NSMenuItem *item = [[o_mi menu] itemWithTitle:_NS("Teletext")];
-        bool b_telx = false;
-        if( p_input )
-        {
-            const int i_teletext_es = var_GetInteger( p_input, "teletext-es" );
-            const int i_spu_es = var_GetInteger( p_input, "spu-es" );
+		bool b_telx = p_input && var_GetInteger( p_input, "teletext-es" ) >= 0;
 
-            if( i_teletext_es >= 0 && i_teletext_es == i_spu_es )
-                b_telx = true;
-        }
         [[item submenu] setAutoenablesItems:NO];
         for( int k=0; k < [[item submenu] numberOfItems]; k++ )
         {




More information about the vlc-devel mailing list