Commit 74ec2459 authored by Ilkka Ollakka's avatar Ilkka Ollakka

use GetName only if GetTitle returns emptry string for meta

parent d33c7cb0
......@@ -132,10 +132,14 @@ void InputManager::update()
/* Update text */
QString text;
char *psz_name = input_item_GetName( input_GetItem( p_input ) );
char *psz_name = input_item_GetTitle( input_GetItem( p_input ) );
char *psz_nowplaying =
input_item_GetNowPlaying( input_GetItem( p_input ) );
char *psz_artist = input_item_GetArtist( input_GetItem( p_input ) );
if( EMPTY_STR( psz_name ) )
{
psz_name = input_item_GetName( input_GetItem( p_input ) );
}
if( !EMPTY_STR( psz_nowplaying ) )
{
text.sprintf( "%s - %s", psz_nowplaying, psz_name );
......
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