]> git.sesse.net Git - vlc/commitdiff
if( A == NULL || EMPTY_STR( A ) ) => if( EMPTY_STR( A ) )
authorRémi Duraffort <ivoire@videolan.org>
Sat, 4 Apr 2009 06:50:45 +0000 (08:50 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 4 Apr 2009 06:50:45 +0000 (08:50 +0200)
modules/misc/notify/growl.m
modules/misc/notify/growl_udp.c
modules/misc/notify/notify.c

index 21b9ad5bfb1d0522c92346aa7491243c19011e08..c1b07eb27092e1ce877f272504a40e44b7de2394 100644 (file)
@@ -181,11 +181,11 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     input_item_t *p_item = input_GetItem( p_input );
 
     psz_title = input_item_GetTitle( p_item );
-    if( psz_title == NULL || EMPTY_STR( psz_title ) )
+    if( EMPTY_STR( psz_title ) )
     {
         free( psz_title );
         psz_title = input_item_GetName( input_GetItem( p_input ) );
-        if( psz_title == NULL || EMPTY_STR( psz_title ) )
+        if( EMPTY_STR( psz_title ) )
         {
             free( psz_title );
             vlc_object_release( p_input );
index 4e980c11373237f5ec2f54fb07ce945340a864ea..4f0387b694854074a5fad1b83f759c6d014d354e 100644 (file)
@@ -143,11 +143,11 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     input_item_t *p_item = input_GetItem( p_input );
 
     psz_title = input_item_GetTitle( p_item );
-    if( psz_title == NULL || EMPTY_STR( psz_title ) )
+    if( EMPTY_STR( psz_title ) )
     {
         free( psz_title );
         psz_title = input_item_GetName( input_GetItem( p_input ) );
-        if( psz_title == NULL || EMPTY_STR( psz_title ) )
+        if( EMPTY_STR( psz_title ) )
         {
             free( psz_title );
             vlc_object_release( p_input );
index 65ce65eaf734c6577abda1320a43ae881589397e..1c1246acf1c13bd83c46a6923a9fd39ebda51142 100644 (file)
@@ -183,12 +183,12 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     psz_artist = input_item_GetArtist( p_input_item );
     psz_album = input_item_GetAlbum( p_input_item );
     psz_title = input_item_GetTitle( p_input_item );
-    if( ( psz_title == NULL ) || EMPTY_STR( psz_title ) )
+    if( EMPTY_STR( psz_title ) )
     {
         free( psz_title );
         psz_title = input_item_GetName( p_input_item );
     }
-    if( ( psz_title == NULL ) || EMPTY_STR( psz_title ) )
+    if( EMPTY_STR( psz_title ) )
     {  /* Not enough metadata ... */
         free( psz_title );
         free( psz_artist );