comparison src/audacious/playlist.c @ 3097:bb1fa0aed8f4

add url unescape code to playlist_get_info_text().
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 19 Jul 2007 12:49:50 +0900
parents 030b956c73b2
children 3b6d316f8b09
comparison
equal deleted inserted replaced
3096:8e4da6a4ab91 3097:bb1fa0aed8f4
1499 * if playlist is properly maintained */ 1499 * if playlist is properly maintained */
1500 if (playlist->position->title) { 1500 if (playlist->position->title) {
1501 title = str_to_utf8(playlist->position->title); 1501 title = str_to_utf8(playlist->position->title);
1502 } 1502 }
1503 else { 1503 else {
1504 gchar *basename = g_path_get_basename(playlist->position->filename); 1504 gchar *realfn = NULL;
1505 gchar *basename = NULL;
1506 realfn = g_filename_from_uri(playlist->position->filename, NULL, NULL);
1507 basename = g_path_get_basename(realfn ? realfn : playlist->position->filename);
1505 title = filename_to_utf8(basename); 1508 title = filename_to_utf8(basename);
1506 g_free(basename); 1509 g_free(realfn); realfn = NULL;
1510 g_free(basename); basename = NULL;
1507 } 1511 }
1508 1512
1509 /* 1513 /*
1510 * If the user don't want numbers in the playlist, don't 1514 * If the user don't want numbers in the playlist, don't
1511 * display them in other parts of XMMS 1515 * display them in other parts of XMMS