From 5eb12a5c380c3374cccef4cff5e566c25ea291b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Sat, 4 Apr 2009 08:50:45 +0200 Subject: [PATCH] if( A == NULL || EMPTY_STR( A ) ) => if( EMPTY_STR( A ) ) --- modules/misc/notify/growl.m | 4 ++-- modules/misc/notify/growl_udp.c | 4 ++-- modules/misc/notify/notify.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/misc/notify/growl.m b/modules/misc/notify/growl.m index 21b9ad5bfb..c1b07eb270 100644 --- a/modules/misc/notify/growl.m +++ b/modules/misc/notify/growl.m @@ -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 ); diff --git a/modules/misc/notify/growl_udp.c b/modules/misc/notify/growl_udp.c index 4e980c1137..4f0387b694 100644 --- a/modules/misc/notify/growl_udp.c +++ b/modules/misc/notify/growl_udp.c @@ -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 ); diff --git a/modules/misc/notify/notify.c b/modules/misc/notify/notify.c index 65ce65eaf7..1c1246acf1 100644 --- a/modules/misc/notify/notify.c +++ b/modules/misc/notify/notify.c @@ -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 ); -- 2.39.2