From 97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 31 May 2004 02:21:06 +0000 Subject: little cleanup of plugin stuff git-svn-id: https://svn.musicpd.org/mpd/trunk@1247 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/song.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/song.c') diff --git a/src/song.c b/src/song.c index 9d2a09e54..c1f465177 100644 --- a/src/song.c +++ b/src/song.c @@ -59,7 +59,9 @@ Song * newSong(char * utf8url, SONG_TYPE type) { if(song->type == SONG_TYPE_FILE) { InputPlugin * plugin; if((plugin = isMusic(utf8url,&(song->mtime)))) { - song->tag = plugin->tagDupFunc(utf8url); + song->tag = plugin->tagDupFunc( + rmp2amp(utf8ToFsCharset(utf8url))); + if(song->tag) validateUtf8Tag(song->tag); } if(!song->tag || song->tag->time<0) { freeSong(song); @@ -267,7 +269,9 @@ int updateSongInfo(Song * song) { song->tag = NULL; if((plugin = isMusic(utf8url,&(song->mtime)))) { - song->tag = plugin->tagDupFunc(utf8url); + song->tag = plugin->tagDupFunc( + rmp2amp(utf8ToFsCharset(utf8url))); + if(song->tag) validateUtf8Tag(song->tag); } if(!song->tag || song->tag->time<0) return -1; else addSongToTables(song); -- cgit v1.2.3