From f1f0b165dd7c5e1fd1d133256eda16add550c94e Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 25 Feb 2022 12:02:58 +0000 Subject: [PATCH] Fix: Fixed a regression happening when ICY-style metadata update is handled without a charset parameter --- src/format_mp3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/format_mp3.c b/src/format_mp3.c index 88e738e5..9ef37a72 100644 --- a/src/format_mp3.c +++ b/src/format_mp3.c @@ -139,6 +139,9 @@ static void mp3_set_tag (format_plugin_t *plugin, const char *tag, const char *i } if (in_value) { + if (!charset) + charset = plugin->charset; + value = util_conv_string (in_value, charset, "UTF-8"); if (value == NULL) value = strdup(in_value);