[vlc-devel] commit: macosx intf: switch a vlc_object_find to input_GetAout ( Derk-Jan Hartman )

git version control git at videolan.org
Thu Mar 12 16:48:44 CET 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Thu Mar 12 16:47:25 2009 +0100| [ac14ce27a1a646787dfe1daf67c4ac3c586bfeaa] | committer: Derk-Jan Hartman 

macosx intf: switch a vlc_object_find to input_GetAout

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

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

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index d13e576..8547121 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1768,8 +1768,7 @@ end:
         if( [o_mi_videotrack isEnabled] == YES )
             [o_mi_subtitle setEnabled: YES];
 
-        aout_instance_t * p_aout = vlc_object_find( p_intf, VLC_OBJECT_AOUT,
-                                                    FIND_ANYWHERE );
+        aout_instance_t * p_aout = input_GetAout( p_input );
         if( p_aout != NULL )
         {
             [o_controls setupVarMenuItem: o_mi_channels target: (vlc_object_t *)p_aout
@@ -1783,8 +1782,7 @@ end:
             vlc_object_release( (vlc_object_t *)p_aout );
         }
 
-        vout_thread_t * p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT,
-                                                            FIND_ANYWHERE );
+        vout_thread_t * p_vout = input_GetVout( p_input );
 
         if( p_vout != NULL )
         {
@@ -1802,6 +1800,8 @@ 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,
@@ -1814,6 +1814,7 @@ end:
 
                 vlc_object_release(p_dec_obj);
             }
+#endif
             vlc_object_release( (vlc_object_t *)p_vout );
         }
         vlc_object_release( p_input );




More information about the vlc-devel mailing list