]> git.sesse.net Git - vlc/commitdiff
skins2: simplify playlist title
authorErwan Tulou <erwan10@videolan.org>
Sat, 30 Mar 2013 19:01:51 +0000 (20:01 +0100)
committerErwan Tulou <erwan10@videolan.org>
Sat, 30 Mar 2013 19:15:01 +0000 (20:15 +0100)
Use 'input_item_GetTitleFbName', since this is actually the function used
to display title in the qt4 playlist.

modules/gui/skins2/vars/playtree.cpp

index 75ebf9e5de70fd44caa6889645e7e4875eaf1e68..1cb635ad2d27e9a60916146b491a0712b06f3795 100644 (file)
@@ -357,14 +357,7 @@ fin:
 
 UString* Playtree::getTitle( input_item_t *pItem )
 {
-    char *psz_name = input_item_GetTitle( pItem );
-    if( EMPTY_STR( psz_name ) )
-    {
-        free( psz_name );
-        psz_name = input_item_GetName( pItem );
-    }
-    if( !psz_name )
-        psz_name = strdup ( "" );
+    char *psz_name = input_item_GetTitleFbName( pItem );
     UString *pTitle = new UString( getIntf(), psz_name );
     free( psz_name );
     return pTitle;