From 00e0224996bcb76ba0f7896393f36ff01ed1882b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 1 Jan 2008 10:10:08 +0000 Subject: 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 --- src/song.c | 6 ++++-- 1 file 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); -- cgit v1.2.3