[vlc-commits] Core: display $Z as Artist - Title
Jean-Baptiste Kempf
git at videolan.org
Wed Aug 22 15:47:21 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 22 15:45:45 2012 +0200| [1c81c0863ba03ec8022aed8a8e3bac81884dd509] | committer: Jean-Baptiste Kempf
Core: display $Z as Artist - Title
This is more coherent with the rest of the worlds...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1c81c0863ba03ec8022aed8a8e3bac81884dd509
---
src/text/strings.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/text/strings.c b/src/text/strings.c
index 8db7b26..cdc4590 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -795,17 +795,17 @@ char *str_format_meta( playlist_t *p_object, const char *string )
if( p_item )
{
char *psz_now_playing = input_item_GetNowPlaying( p_item );
- if ( psz_now_playing == NULL )
+ if( EMPTY_STR( psz_now_playing ) )
{
char *psz_temp = input_item_GetTitleFbName( p_item );
char *psz_artist = input_item_GetArtist( p_item );
- if( !EMPTY_STR( psz_temp ) )
+ if( !EMPTY_STR( psz_artist ) )
{
- INSERT_STRING( psz_temp );
- if ( !EMPTY_STR( psz_artist ) )
+ INSERT_STRING( psz_artist );
+ if ( !EMPTY_STR( psz_temp ) )
INSERT_STRING_NO_FREE( " - " );
}
- INSERT_STRING( psz_artist );
+ INSERT_STRING( psz_temp );
}
else
INSERT_STRING( psz_now_playing );
More information about the vlc-commits
mailing list