[vlc-commits] macosx/menu: add missing debug

Felix Paul Kühne git at videolan.org
Thu Dec 12 16:05:41 CET 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 12 16:05:34 2013 +0100| [bbe24b450d971596c63c3e60eccecfc2e01f6ecb] | committer: Felix Paul Kühne

macosx/menu: add missing debug

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

 modules/gui/macosx/MainMenu.m |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index 2e38a46..0f4b0fa 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -575,11 +575,9 @@ static VLCMainMenu *_o_sharedInstance = nil;
             [self setupVarMenuItem: o_mi_deinterlace_mode target: (vlc_object_t *)p_vout
                                      var: "deinterlace-mode" selector: @selector(toggleVar:)];
 
-#if 1
-            [self setupVarMenuItem: o_mi_ffmpeg_pp target:
-             (vlc_object_t *)p_vout var:"postprocess" selector:
-             @selector(toggleVar:)];
-#endif
+            [self setupVarMenuItem: o_mi_ffmpeg_pp target: (vlc_object_t *)p_vout
+                               var:"postprocess" selector: @selector(toggleVar:)];
+
             vlc_object_release(p_vout);
 
             [self refreshVoutDeviceMenu:nil];
@@ -1273,6 +1271,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
             break;
         default:
             /* Variable doesn't exist or isn't handled */
+            msg_Warn(p_object, "variable %s doesn't exist or isn't handled", psz_variable);
             return;
     }
 
@@ -1290,9 +1289,8 @@ static VLCMainMenu *_o_sharedInstance = nil;
         return;
     }
 
-    if (var_Get(p_object, psz_variable, &val) < 0) {
+    if (var_Get(p_object, psz_variable, &val) < 0)
         return;
-    }
 
     VLCAutoGeneratedMenuContent *o_data;
     switch(i_type & VLC_VAR_TYPE) {



More information about the vlc-commits mailing list