output/shout: use shout_set_metadata_utf8()
This commit is contained in:
@@ -462,8 +462,14 @@ ShoutOutput::SendTag(const Tag &tag)
|
|||||||
shout_tag_to_metadata(tag, song, sizeof(song));
|
shout_tag_to_metadata(tag, song, sizeof(song));
|
||||||
|
|
||||||
if (SHOUTERR_SUCCESS != shout_metadata_add(meta, "song", song) ||
|
if (SHOUTERR_SUCCESS != shout_metadata_add(meta, "song", song) ||
|
||||||
|
#ifdef SHOUT_FORMAT_TEXT
|
||||||
|
/* since libshout 2.4.6 */
|
||||||
|
SHOUTERR_SUCCESS != shout_set_metadata_utf8(shout_conn, meta)
|
||||||
|
#else
|
||||||
SHOUTERR_SUCCESS != shout_metadata_add(meta, "charset", "UTF-8") ||
|
SHOUTERR_SUCCESS != shout_metadata_add(meta, "charset", "UTF-8") ||
|
||||||
SHOUTERR_SUCCESS != shout_set_metadata(shout_conn, meta)) {
|
SHOUTERR_SUCCESS != shout_set_metadata(shout_conn, meta)
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
LogWarning(shout_output_domain,
|
LogWarning(shout_output_domain,
|
||||||
"error setting shout metadata");
|
"error setting shout metadata");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user