[vlc-commits] skins2: simplify playlist title
Erwan Tulou
git at videolan.org
Sat Mar 30 20:17:09 CET 2013
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Sat Mar 30 20:01:51 2013 +0100| [4dd2e3258b3c23773b9ea768c8a362bb9a41993c] | committer: Erwan Tulou
skins2: simplify playlist title
Use 'input_item_GetTitleFbName', since this is actually the function used
to display title in the qt4 playlist.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4dd2e3258b3c23773b9ea768c8a362bb9a41993c
---
modules/gui/skins2/vars/playtree.cpp | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/modules/gui/skins2/vars/playtree.cpp b/modules/gui/skins2/vars/playtree.cpp
index 75ebf9e..1cb635a 100644
--- a/modules/gui/skins2/vars/playtree.cpp
+++ b/modules/gui/skins2/vars/playtree.cpp
@@ -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;
More information about the vlc-commits
mailing list