Mercurial > audlegacy-plugins
diff src/vorbis/vorbis.c @ 1279:2ebffac54865
unescape url encoded filename where real filename is needed.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Tue, 17 Jul 2007 01:14:36 +0900 |
parents | ed2d7787779e |
children | ab66f3ee7a11 |
line wrap: on
line diff
--- a/src/vorbis/vorbis.c Mon Jul 16 23:47:42 2007 +0900 +++ b/src/vorbis/vorbis.c Tue Jul 17 01:14:36 2007 +0900 @@ -751,12 +751,14 @@ { TitleInput *tuple = NULL; vorbis_comment *comment; - + gchar *realfn = NULL; tuple = bmp_title_input_new(); - tuple->file_name = g_path_get_basename(filename); - tuple->file_ext = get_extension(filename); - tuple->file_path = g_path_get_dirname(filename); + realfn = g_filename_from_uri(filename, NULL, NULL); + tuple->file_name = g_path_get_basename(realfn ? realfn : filename); + tuple->file_ext = get_extension(realfn ? realfn : filename); + tuple->file_path = g_path_get_dirname(realfn ? realfn : filename); + g_free(realfn); realfn = NULL; /* Retrieve the length */ if (is_stream == FALSE)