[vlc-devel] commit: macosx: Get rid of vlc_object_find(playlist). (Pierre d'Herbemont )

git version control git at videolan.org
Sun Jun 15 22:49:46 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jun 15 22:51:37 2008 +0200| [c5132d352300a2f59ac15c91ac8e109d65e75e12]

macosx: Get rid of vlc_object_find(playlist).

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

 modules/gui/macosx/equalizer.m |   24 ++++++++----------------
 1 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/modules/gui/macosx/equalizer.m b/modules/gui/macosx/equalizer.m
index 1d02170..02f1ba7 100644
--- a/modules/gui/macosx/equalizer.m
+++ b/modules/gui/macosx/equalizer.m
@@ -53,8 +53,7 @@ static void ChangeFiltersString( intf_thread_t *p_intf,
                                 VLC_OBJECT_AOUT, FIND_ANYWHERE );
     aout_instance_t *p_aout = (aout_instance_t *)p_object;
     if( p_object == NULL )
-        p_object = vlc_object_find( p_intf,
-                                 VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( p_intf );
     if( p_object == NULL )
         return;
 
@@ -127,8 +126,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
     vlc_object_t *p_object = vlc_object_find( p_intf,
                                 VLC_OBJECT_AOUT, FIND_ANYWHERE );
     if( p_object == NULL )
-        p_object = vlc_object_find( p_intf,
-                                 VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( p_intf );
     if( p_object == NULL )
         return false;
 
@@ -186,8 +184,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
                                               VLC_OBJECT_AOUT, FIND_ANYWHERE );
 
     if( p_object == NULL )
-        p_object = vlc_object_find( p_intf,
-                                    VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( p_intf );
     if( p_object == NULL )
         return;
 
@@ -249,8 +246,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
                                               VLC_OBJECT_AOUT, FIND_ANYWHERE );
 
     if( p_object == NULL )
-        p_object = vlc_object_find( p_intf,
-                                    VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( p_intf );
     if( p_object == NULL )
         return;
 
@@ -292,8 +288,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
     vlc_object_t *p_object= vlc_object_find( p_intf,
                                              VLC_OBJECT_AOUT, FIND_ANYWHERE );
     if( p_object == NULL )
-        p_object = vlc_object_find( p_intf,
-                                    VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( p_intf );
     if( p_object == NULL )
         return;
 
@@ -338,8 +333,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
     vlc_object_t *p_object = vlc_object_find( p_intf,
                                               VLC_OBJECT_AOUT, FIND_ANYWHERE );
     if( p_object == NULL )
-        p_object = vlc_object_find( p_intf,
-                                    VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( p_intf );
     if( p_object == NULL )
         return;
 
@@ -379,8 +373,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
                                              VLC_OBJECT_AOUT, FIND_ANYWHERE );
     aout_instance_t *p_aout = (aout_instance_t *)p_object;
     if( p_object == NULL )
-        p_object = vlc_object_find( p_intf,
-                                    VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( p_intf );
     if( p_object == NULL )
         return;
 
@@ -417,8 +410,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
     vlc_object_t *p_object= vlc_object_find( VLCIntf,
                                              VLC_OBJECT_AOUT, FIND_ANYWHERE );
     if( p_object == NULL )
-        p_object = vlc_object_find( VLCIntf,
-                                    VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+        p_object = pl_Yield( VLCIntf );
 
     [o_window setExcludedFromWindowsMenu: TRUE];
 




More information about the vlc-devel mailing list