[MPlayer-cvslog] r37979 - trunk/gui/dialog/playlist.c
ib
subversion at mplayerhq.hu
Fri Oct 6 20:02:12 EEST 2017
Author: ib
Date: Fri Oct 6 20:02:12 2017
New Revision: 37979
Log:
Prettify the playlist dialog.
For all cue sheet playlist entries, add the title to the file name.
This will facilitate orientation, because without the titles, there
is nothing but the same file name repeatedly for all tracks.
Modified:
trunk/gui/dialog/playlist.c
Modified: trunk/gui/dialog/playlist.c
==============================================================================
--- trunk/gui/dialog/playlist.c Fri Oct 6 16:10:09 2017 (r37978)
+++ trunk/gui/dialog/playlist.c Fri Oct 6 20:02:12 2017 (r37979)
@@ -632,8 +632,18 @@ void ShowPlaylist( void )
{
while ( next || next->next )
{
- char * text[1][5]; text[0][4]="";
- text[0][0]=g_filename_display_name( next->name );
+ char *name, *text[1][5]; text[0][4]="";
+
+ name = g_filename_display_name(next->name);
+
+ if (next->title)
+ {
+ char *title = g_strdup_printf("%s ยท %s", name, next->title);
+ g_free(name);
+ name = title;
+ }
+
+ text[0][0]=name;
text[0][1]=g_filename_display_name( next->path );
text[0][2]=next->name;
text[0][3]=next->path;
More information about the MPlayer-cvslog
mailing list