From 1d04490ed3120d1aedb35c9ffdaf4959250b1a47 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Apr 2022 17:38:30 +0200 Subject: [PATCH] output/shout: use shout_set_content_format() --- src/output/plugins/ShoutOutputPlugin.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/output/plugins/ShoutOutputPlugin.cxx b/src/output/plugins/ShoutOutputPlugin.cxx index 5b22a9a11..81bcb168d 100644 --- a/src/output/plugins/ShoutOutputPlugin.cxx +++ b/src/output/plugins/ShoutOutputPlugin.cxx @@ -252,7 +252,13 @@ ShoutConfig::Setup(shout_t &connection) const shout_set_mount(&connection, mount) != SHOUTERR_SUCCESS || shout_set_user(&connection, user) != SHOUTERR_SUCCESS || shout_set_public(&connection, is_public) != SHOUTERR_SUCCESS || +#ifdef SHOUT_USAGE_AUDIO + /* since libshout 2.4.3 */ + shout_set_content_format(&connection, format, SHOUT_USAGE_AUDIO, + nullptr) != SHOUTERR_SUCCESS || +#else shout_set_format(&connection, format) != SHOUTERR_SUCCESS || +#endif shout_set_protocol(&connection, protocol) != SHOUTERR_SUCCESS || #ifdef SHOUT_TLS shout_set_tls(&connection, tls) != SHOUTERR_SUCCESS ||