]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/input_manager.cpp
Add a function to get the Title and fallback to the name if the title is empty.
[vlc] / modules / gui / qt4 / input_manager.cpp
index 52503540cae5d59ab0b08a54f278a9b4aef7e3a6..5ca2c006cabb9c0e2cde604e173c0c379297d02b 100644 (file)
@@ -420,12 +420,7 @@ void InputManager::UpdateName()
     QString text;
 
     /* Try to get the Title, then the Name */
-    char *psz_name = input_item_GetTitle( input_GetItem( p_input ) );
-    if( EMPTY_STR( psz_name ) )
-    {
-        free( psz_name );
-        psz_name = input_item_GetName( input_GetItem( p_input ) );
-    }
+    char *psz_name = input_item_GetTitleFbName( input_GetItem( p_input ) );
 
     /* Try to get the nowplaying */
     char *psz_nowplaying =