aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-02-25 01:31:52 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-02-25 01:31:52 +0000
commit8e08f9b07880cd3ee8468291accad0d879522533 (patch)
treee45de544ba80dfb843fdaa6b9aa052508c60121c /src
parent5af6fa2accc701233d0d3b41488813e9108eef18 (diff)
downloadmpd-8e08f9b07880cd3ee8468291accad0d879522533.tar.gz
mpd-8e08f9b07880cd3ee8468291accad0d879522533.tar.xz
mpd-8e08f9b07880cd3ee8468291accad0d879522533.zip
oops, forgot to call utf8ToFsCharset when opening flac files for Metadata
git-svn-id: https://svn.musicpd.org/mpd/trunk@46 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/tag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag.c b/src/tag.c
index 2dd7a3c5b..506c9d5f6 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -224,7 +224,7 @@ MpdTag * oggTagDup(char * utf8file) {
#endif
#ifdef HAVE_FLAC
-MpdTag * flacMetadataDup(char * file, int * vorbisCommentFound) {
+MpdTag * flacMetadataDup(char * utf8file, int * vorbisCommentFound) {
MpdTag * ret = NULL;
FLAC__Metadata_SimpleIterator * it;
FLAC__StreamMetadata * block = NULL;
@@ -235,7 +235,7 @@ MpdTag * flacMetadataDup(char * file, int * vorbisCommentFound) {
blockSignals();
it = FLAC__metadata_simple_iterator_new();
- if(!FLAC__metadata_simple_iterator_init(it,rmp2amp(file),1,0)) {
+ if(!FLAC__metadata_simple_iterator_init(it,rmp2amp(utf8ToFsCharset(utf8file)),1,0)) {
FLAC__metadata_simple_iterator_delete(it);
unblockSignals();
return ret;