]> git.sesse.net Git - vlc/blobdiff - modules/gui/ncurses.c
Add a function to get the Title and fallback to the name if the title is empty.
[vlc] / modules / gui / ncurses.c
index 5c0d2a48c74647fd22fec14e7790e1cbe8f06c8a..709171597c9cf4da596c970070d40a9e0eacfc05 100644 (file)
@@ -2271,12 +2271,7 @@ static void PlaylistAddNode( intf_thread_t *p_intf, playlist_item_t *p_node,
     {
         char *psz_display;
         p_child = p_node->pp_children[k];
-        char *psz_name = input_item_GetTitle( p_child->p_input );
-        if( !psz_name || !*psz_name )
-        {
-            free( psz_name );
-            psz_name = input_item_GetName( p_child->p_input );
-        }
+        char *psz_name = input_item_GetTitleFbName( p_child->p_input );
 
         if( c && *c )
         {