use GetName only if GetTitle returns emptry string for meta
authorIlkka Ollakka <ileoo@videolan.org>
Mon, 20 Aug 2007 16:13:38 +0000 (16:13 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 20 Aug 2007 16:13:38 +0000 (16:13 +0000)
modules/gui/qt4/input_manager.cpp

index 327e13a..b9bb653 100644 (file)
@@ -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 );