# HG changeset patch # User Yoshiki Yazawa # Date 1193732702 -32400 # Node ID 6d0db63e05aabf5b79009e86cf7a7de98fad4c56 # Parent 7cfa1e7cec08102a3442fd64053c58a49114736e file name should be un-escaped when it is used as a title in the playlist. diff -r 7cfa1e7cec08 -r 6d0db63e05aa src/audacious/tuple_formatter.c --- a/src/audacious/tuple_formatter.c Mon Oct 29 17:25:32 2007 +0100 +++ b/src/audacious/tuple_formatter.c Tue Oct 30 17:25:02 2007 +0900 @@ -585,8 +585,11 @@ rv = tuple_formatter_process_string(tuple, string); if(!rv || !strcmp(rv, "")) { + const gchar *file_name = tuple_get_string(tuple, FIELD_FILE_NAME, NULL); g_free(rv); - rv = g_strdup(tuple_get_string(tuple, FIELD_FILE_NAME, NULL)); + rv = g_filename_from_uri(file_name, NULL, NULL); + if(!rv) + rv = g_strdup(file_name); } return rv;