diff options
Diffstat (limited to '')
-rw-r--r-- | src/inputStream_http.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c index 51e562c01..1bfec0caa 100644 --- a/src/inputStream_http.c +++ b/src/inputStream_http.c @@ -490,14 +490,15 @@ size_t inputStream_httpRead(InputStream * inStream, void * ptr, size_t size, switch(data->connState) { case HTTP_CONN_STATE_OPEN: + if(data->prebuffer || data->buflen < data->icyMetaint) return 0; + + break; case HTTP_CONN_STATE_CLOSED: - break; + if(data->buflen) break; default: return 0; } - if(data->prebuffer || data->buflen < data->icyMetaint) return 0; - if(data->icyMetaint > 0) { if(data->icyOffset >= data->icyMetaint) { int metalen = *(data->buffer); |