[vlc-devel] commit: macosx: fixed a few compilation warnings ( Felix Paul Kühne )

git version control git at videolan.org
Fri Aug 15 12:40:50 CEST 2008


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Aug 15 12:43:41 2008 +0200| [15144737c307c4a7195ab001ae199ef722e53b2b] | committer: Felix Paul Kühne 

macosx: fixed a few compilation warnings

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

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

diff --git a/modules/gui/macosx/equalizer.m b/modules/gui/macosx/equalizer.m
index 02f1ba7..68d6e9d 100644
--- a/modules/gui/macosx/equalizer.m
+++ b/modules/gui/macosx/equalizer.m
@@ -53,9 +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 = pl_Yield( p_intf );
-    if( p_object == NULL )
-        return;
+        p_object = (vlc_object_t *)pl_Yield( p_intf );
 
     psz_string = var_GetNonEmptyString( p_object, "audio-filter" );
 
@@ -126,9 +124,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 = pl_Yield( p_intf );
-    if( p_object == NULL )
-        return false;
+        p_object = (vlc_object_t *)pl_Yield( p_intf );
 
     if( (BOOL)config_GetInt( p_intf, "macosx-eq-keep" ) == YES )
         psz_string = config_GetPsz( p_intf, "audio-filter" );
@@ -184,9 +180,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
                                               VLC_OBJECT_AOUT, FIND_ANYWHERE );
 
     if( p_object == NULL )
-        p_object = pl_Yield( p_intf );
-    if( p_object == NULL )
-        return;
+        p_object = (vlc_object_t *)pl_Yield( p_intf );
 
     var_Create( p_object, "equalizer-preamp", VLC_VAR_FLOAT |
                 VLC_VAR_DOINHERIT );
@@ -246,9 +240,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
                                               VLC_OBJECT_AOUT, FIND_ANYWHERE );
 
     if( p_object == NULL )
-        p_object = pl_Yield( p_intf );
-    if( p_object == NULL )
-        return;
+        p_object = (vlc_object_t *)pl_Yield( p_intf );
 
     char psz_values[102];
     memset( psz_values, 0, 102 );
@@ -288,9 +280,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 = pl_Yield( p_intf );
-    if( p_object == NULL )
-        return;
+        p_object = (vlc_object_t *)pl_Yield( p_intf );
 
     char psz_values[102];
     memset( psz_values, 0, 102 );
@@ -333,9 +323,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 = pl_Yield( p_intf );
-    if( p_object == NULL )
-        return;
+        p_object = (vlc_object_t *)pl_Yield( p_intf );
 
     var_SetFloat( p_object, "equalizer-preamp", f_preamp );
 
@@ -373,9 +361,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 = pl_Yield( p_intf );
-    if( p_object == NULL )
-        return;
+        p_object = (vlc_object_t *)pl_Yield( p_intf );
 
     var_SetBool( p_object, "equalizer-2pass", b_2p );
     if( ( [o_ckb_enable state] ) && ( p_aout != NULL ) )
@@ -410,7 +396,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 = pl_Yield( VLCIntf );
+        p_object = (vlc_object_t *)pl_Yield( VLCIntf );
 
     [o_window setExcludedFromWindowsMenu: TRUE];
 




More information about the vlc-devel mailing list