Commit b807c1e2 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: Do the ICY port increment only when using the ICY implementation

This makes metadata work again on ICY servers.

Fixes: #2310
parent 0ac7ed9e
Loading
Loading
Loading
Loading
+1 −1
Changes for src/connection.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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) {