Removing some commented code that wrote HTTP streams to stdout.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6461 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
b91af54d2a
commit
5f8d6d6900
@ -666,7 +666,6 @@ static int getHTTPHello(InputStream * inStream)
|
|||||||
|
|
||||||
needle += 4; /* 4 == strlen("\r\n\r\n") */
|
needle += 4; /* 4 == strlen("\r\n\r\n") */
|
||||||
data->buflen -= (needle - data->buffer);
|
data->buflen -= (needle - data->buffer);
|
||||||
/*fwrite(data->buffer, 1, data->buflen, stdout); */
|
|
||||||
memmove(data->buffer, needle, data->buflen);
|
memmove(data->buffer, needle, data->buflen);
|
||||||
|
|
||||||
data->connState = HTTP_CONN_STATE_OPEN;
|
data->connState = HTTP_CONN_STATE_OPEN;
|
||||||
@ -816,10 +815,8 @@ size_t inputStream_httpRead(InputStream * inStream, void *ptr, size_t size,
|
|||||||
tosend = (tosend / size) * size;
|
tosend = (tosend / size) * size;
|
||||||
|
|
||||||
memcpy(ptr, data->buffer, tosend);
|
memcpy(ptr, data->buffer, tosend);
|
||||||
/*fwrite(ptr,1,readed,stdout); */
|
|
||||||
data->buflen -= tosend;
|
data->buflen -= tosend;
|
||||||
data->icyOffset += tosend;
|
data->icyOffset += tosend;
|
||||||
/*fwrite(data->buffer,1,readed,stdout); */
|
|
||||||
memmove(data->buffer, data->buffer + tosend, data->buflen);
|
memmove(data->buffer, data->buffer + tosend, data->buflen);
|
||||||
|
|
||||||
inStream->offset += tosend;
|
inStream->offset += tosend;
|
||||||
@ -901,7 +898,6 @@ int inputStream_httpBuffer(InputStream * inStream)
|
|||||||
data->connState = HTTP_CONN_STATE_CLOSED;
|
data->connState = HTTP_CONN_STATE_CLOSED;
|
||||||
readed = 0;
|
readed = 0;
|
||||||
}
|
}
|
||||||
/*fwrite(data->buffer+data->buflen,1,readed,stdout); */
|
|
||||||
data->buflen += readed;
|
data->buflen += readed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user