contrib/libshout/icy-port-increment.patch
2020-01-12 17:42:06 +11:00

30 lines
891 B
Diff

From b807c1e2550718bdc73d65ac1b05255d18f45c54 Mon Sep 17 00:00:00 2001
From: Philipp Schafft <lion@lion.leolix.org>
Date: Wed, 26 Jun 2019 19:30:25 +0000
Subject: [PATCH] Fix: Do the ICY port increment only when using the ICY
implementation
This makes metadata work again on ICY servers.
Fixes: #2310
---
src/connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/connection.c b/src/connection.c
index 01b15ba..0fd00ab 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -567,7 +567,7 @@ int shout_connection_connect(shout_connection_t *con, shout_t *s
shout_connection_set_nonblocking(con, shout_get_nonblocking(shout));
port = shout->port;
- if (shout_get_protocol(shout) == SHOUT_PROTOCOL_ICY)
+ if (con->impl == shout_icy_impl)
port++;
if (con->nonblocking == SHOUT_BLOCKING_NONE) {
--
2.22.0