[vlc-devel] commit: macosx: Fix postprocessing menu item (Derk-Jan Hartman )

git version control git at videolan.org
Wed Jun 3 23:41:53 CEST 2009


vlc | branch: 1.0-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Wed Jun  3 23:03:22 2009 +0200| [7959b70514bd5cd78980cc4dc259426d1529ba6b] | committer: Derk-Jan Hartman 

macosx: Fix postprocessing menu item

This closes #2814
(cherry picked from commit 20967dfe87ca089b623408f31759449c737b7a54)

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

 modules/gui/macosx/intf.m |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 62fcebe..7d758b1 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1881,20 +1881,11 @@ end:
             [o_controls setupVarMenuItem: o_mi_deinterlace target: (vlc_object_t *)p_vout
                 var: "deinterlace" selector: @selector(toggleVar:)];
 
-#if 0
-/* FIXME Post processing. */
-            p_dec_obj = (vlc_object_t *)vlc_object_find(
-                                                 (vlc_object_t *)p_vout,
-                                                 VLC_OBJECT_DECODER,
-                                                 FIND_PARENT );
-            if( p_dec_obj != NULL )
-            {
-               [o_controls setupVarMenuItem: o_mi_ffmpeg_pp target:
-                    (vlc_object_t *)p_dec_obj var:"ffmpeg-pp-q" selector:
+#if 1
+           [o_controls setupVarMenuItem: o_mi_ffmpeg_pp target:
+                    (vlc_object_t *)p_vout var:"postprocess" selector:
                     @selector(toggleVar:)];
 
-                vlc_object_release(p_dec_obj);
-            }
 #endif
             vlc_object_release( (vlc_object_t *)p_vout );
         }
@@ -2539,9 +2530,9 @@ end:
 
     if( [o_msg_arr count] + 2 > 600 )
     {
-		[o_msg_arr removeObjectAtIndex: 0];
+        [o_msg_arr removeObjectAtIndex: 0];
         [o_msg_arr removeObjectAtIndex: 1];
-   }
+    }
 
     o_attr = [NSDictionary dictionaryWithObject: o_gray
                                          forKey: NSForegroundColorAttributeName];




More information about the vlc-devel mailing list