diff --git a/stream/http.c b/stream/http.c index 3971aa9d05..61795bcf9b 100644 --- a/stream/http.c +++ b/stream/http.c @@ -195,7 +195,10 @@ static int scast_streaming_start(stream_t *stream) { if (is_ultravox) metaint = 0; else { - metaint = atoi(http_get_field(http_hdr, "Icy-MetaInt")); + metaint = -1; + char *h = http_get_field(http_hdr, "Icy-MetaInt"); + if (h) + metaint = atoi(h); if (metaint <= 0) return -1; }