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
This commit is contained in:
Warren Dukes 2004-02-25 01:31:52 +00:00
parent 5af6fa2acc
commit 8e08f9b078
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ MpdTag * oggTagDup(char * utf8file) {
#endif #endif
#ifdef HAVE_FLAC #ifdef HAVE_FLAC
MpdTag * flacMetadataDup(char * file, int * vorbisCommentFound) { MpdTag * flacMetadataDup(char * utf8file, int * vorbisCommentFound) {
MpdTag * ret = NULL; MpdTag * ret = NULL;
FLAC__Metadata_SimpleIterator * it; FLAC__Metadata_SimpleIterator * it;
FLAC__StreamMetadata * block = NULL; FLAC__StreamMetadata * block = NULL;
@ -235,7 +235,7 @@ MpdTag * flacMetadataDup(char * file, int * vorbisCommentFound) {
blockSignals(); blockSignals();
it = FLAC__metadata_simple_iterator_new(); 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); FLAC__metadata_simple_iterator_delete(it);
unblockSignals(); unblockSignals();
return ret; return ret;