From ddafdd971f6088d12c832eead4421322bda7a76c Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Tue, 17 Sep 2019 18:08:57 +0000 Subject: [PATCH] Fix: Strange patch for ICY --- src/connection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 6535c804..9e036848 100644 --- a/src/connection.c +++ b/src/connection.c @@ -464,11 +464,14 @@ static void process_request_queue (void) } } - if (len > 0) { + if (len > 0 || node->shoutcast > 1) { ssize_t stream_offset = -1; int pass_it = 1; char *ptr; + if (len < 0 && node->shoutcast > 1) + len = 0; + /* handle \n, \r\n and nsvcap which for some strange reason has * EOL as \r\r\n */ node->offset += len;