]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/intf.m
* ALL: changed the prototype of input_AddES() to include enough information so we...
[vlc] / modules / gui / macosx / intf.m
index 35e0f1dc225bcb669e3ad7123b6ffe748b7ab89c..f64393dc91f489950dea18b7c3eadb091092eba4 100644 (file)
@@ -2,7 +2,7 @@
  * intf.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.73 2003/05/05 22:04:11 hartman Exp $
+ * $Id: intf.m,v 1.74 2003/05/05 22:23:39 gbazin Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -1272,11 +1272,7 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
             NSMenuItem * o_lmi;
             NSString * o_title;
 
-            if( *ES->psz_desc )
-            {
-                o_title = [NSApp localizedString: ES->psz_desc];
-            }
-            else
+            if( !ES->psz_desc || !*ES->psz_desc )
             {
                 char psz_title[ 256 ];
 
@@ -1286,6 +1282,10 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
 
                 o_title = [NSApp localizedString: psz_title];
             }
+            else
+            {
+                o_title = [NSApp localizedString: ES->psz_desc];
+            }
 
             o_lmi = [o_menu addItemWithTitle: o_title
                 action: pf_callback keyEquivalent: @""];