diff options
-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 c9301386d..ddc3bc4bd 100644 --- a/src/song.c +++ b/src/song.c @@ -62,8 +62,10 @@ Song *newSong(const char *url, Directory * parentDir) 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); while (!song->tag && (plugin = isMusic(abs_path, &(song->mtime), |