inputStream_http: stop mixing declarations with code
git-svn-id: https://svn.musicpd.org/mpd/trunk@5242 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
1d9b6076cb
commit
8a38b28e86
@ -711,6 +711,8 @@ int inputStream_httpOpen(InputStream * inStream, char *url)
|
|||||||
|
|
||||||
int inputStream_httpSeek(InputStream * inStream, long offset, int whence)
|
int inputStream_httpSeek(InputStream * inStream, long offset, int whence)
|
||||||
{
|
{
|
||||||
|
InputStreamHTTPData *data;
|
||||||
|
|
||||||
if (!inStream->seekable)
|
if (!inStream->seekable)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -728,7 +730,7 @@ int inputStream_httpSeek(InputStream * inStream, long offset, int whence)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
InputStreamHTTPData *data = (InputStreamHTTPData *)inStream->data;
|
data = (InputStreamHTTPData *)inStream->data;
|
||||||
close(data->sock);
|
close(data->sock);
|
||||||
data->connState = HTTP_CONN_STATE_REOPEN;
|
data->connState = HTTP_CONN_STATE_REOPEN;
|
||||||
data->buflen = 0;
|
data->buflen = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user