[vlc-devel] commit: if( A == NULL || EMPTY_STR( A ) ) => if( EMPTY_STR( A ) ) ( Rémi Duraffort )
git version control
git at videolan.org
Sat Apr 4 09:20:15 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Apr 4 08:50:45 2009 +0200| [5eb12a5c380c3374cccef4cff5e566c25ea291b3] | committer: Rémi Duraffort
if( A == NULL || EMPTY_STR( A ) ) => if( EMPTY_STR( A ) )
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5eb12a5c380c3374cccef4cff5e566c25ea291b3
---
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 21b9ad5..c1b07eb 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 4e980c1..4f0387b 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 65ce65e..1c1246a 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 );
More information about the vlc-devel
mailing list