diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-31 02:21:06 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-31 02:21:06 +0000 |
commit | 97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3 (patch) | |
tree | edf2f869cbd4e8b0bd728b6162ae4c2b61700f7a /src/song.c | |
parent | 30424cb3e9cf500165621802f65d552218e080f3 (diff) | |
download | mpd-97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3.tar.gz mpd-97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3.tar.xz mpd-97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3.zip |
little cleanup of plugin stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@1247 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.c')
-rw-r--r-- | src/song.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |