Commit 5eb12a5c authored by Rémi Duraffort's avatar Rémi Duraffort

if( A == NULL || EMPTY_STR( A ) ) => if( EMPTY_STR( A ) )

parent 05d386b4
......@@ -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 );
......
......@@ -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 );
......
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment