diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-01-14 02:08:07 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-01-14 02:08:07 +0000 |
commit | 8a38b28e860b6d0c1bf481dcf4023e0fda58bb95 (patch) | |
tree | 9e8a513a69e0c000fb3b287aed7594a1cadc6991 | |
parent | 1d9b6076cbc4f311289c7fcf99aa42ae47abc6e3 (diff) | |
download | mpd-8a38b28e860b6d0c1bf481dcf4023e0fda58bb95.tar.gz mpd-8a38b28e860b6d0c1bf481dcf4023e0fda58bb95.tar.xz mpd-8a38b28e860b6d0c1bf481dcf4023e0fda58bb95.zip |
inputStream_http: stop mixing declarations with code
git-svn-id: https://svn.musicpd.org/mpd/trunk@5242 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/inputStream_http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c index 5eb06a086..979ead580 100644 --- a/src/inputStream_http.c +++ b/src/inputStream_http.c @@ -711,6 +711,8 @@ int inputStream_httpOpen(InputStream * inStream, char *url) int inputStream_httpSeek(InputStream * inStream, long offset, int whence) { + InputStreamHTTPData *data; + if (!inStream->seekable) return -1; @@ -728,7 +730,7 @@ int inputStream_httpSeek(InputStream * inStream, long offset, int whence) return -1; } - InputStreamHTTPData *data = (InputStreamHTTPData *)inStream->data; + data = (InputStreamHTTPData *)inStream->data; close(data->sock); data->connState = HTTP_CONN_STATE_REOPEN; data->buflen = 0; |