Mercurial > audlegacy-plugins
changeset 1477:04311d687e94
fix musepack tag retrieval
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Sat, 11 Aug 2007 23:48:14 -0500 |
parents | c6947f95fd2a |
children | dd05a74648a7 |
files | src/musepack/libmpc.cxx |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/musepack/libmpc.cxx Sat Aug 11 23:56:22 2007 +0200 +++ b/src/musepack/libmpc.cxx Sat Aug 11 23:48:14 2007 -0500 @@ -425,7 +425,9 @@ static MpcInfo getTags(const char* p_Filename) { - File oFile(p_Filename, false); + gchar *pRealFilename = g_filename_from_uri(p_Filename, NULL, NULL); + File oFile(pRealFilename ? pRealFilename : p_Filename, false); + g_free(pRealFilename); Tag* poTag = oFile.tag(); MpcInfo tags = {0}; tags.title = g_strdup(poTag->title().toCString(true));