diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-01-01 10:10:08 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-01-01 10:10:08 +0000 |
commit | 00e0224996bcb76ba0f7896393f36ff01ed1882b (patch) | |
tree | 33933dde4c93c81a605fcf7773c6ec9222346b10 | |
parent | 4c88ef34bb51adb9ac737f4f58521512c08b76a0 (diff) | |
download | mpd-00e0224996bcb76ba0f7896393f36ff01ed1882b.tar.gz mpd-00e0224996bcb76ba0f7896393f36ff01ed1882b.tar.xz mpd-00e0224996bcb76ba0f7896393f36ff01ed1882b.zip |
song: updateSongInfo: left out charset conversion when going thread-safe
git-svn-id: https://svn.musicpd.org/mpd/trunk@7124 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/song.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/song.c b/src/song.c index 1a3a78682..4dee27c9c 100644 --- a/src/song.c +++ b/src/song.c @@ -294,8 +294,10 @@ int updateSongInfo(Song * song) InputPlugin *plugin; unsigned int next = 0; char path_max_tmp[MPD_PATH_MAX]; - char *abs_path = rmp2amp_r(path_max_tmp, - get_song_url(path_max_tmp, song)); + char abs_path[MPD_PATH_MAX]; + + utf8_to_fs_charset(abs_path, get_song_url(path_max_tmp, song)); + rmp2amp_r(abs_path, abs_path); if (song->tag) freeMpdTag(song->tag); |