From 8a38b28e860b6d0c1bf481dcf4023e0fda58bb95 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 14 Jan 2007 02:08:07 +0000 Subject: [PATCH] inputStream_http: stop mixing declarations with code git-svn-id: https://svn.musicpd.org/mpd/trunk@5242 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputStream_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;