diff options
author | waker <wakeroid@gmail.com> | 2010-10-25 20:44:05 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-10-25 20:44:05 +0200 |
commit | 7adf4200bd21d8525f40e6329b7e007547193332 (patch) | |
tree | d17b4955121d09bdbbfab68317c11f92ff361068 | |
parent | 07a6beda2ad5903c2308c4865e98a923aeaa8d18 (diff) |
fixed playing icy streams with redirections (reset content-length on every redirect)
-rw-r--r-- | plugins/vfs_curl/vfs_curl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/vfs_curl/vfs_curl.c b/plugins/vfs_curl/vfs_curl.c index e18fbb08..9c0caba5 100644 --- a/plugins/vfs_curl/vfs_curl.c +++ b/plugins/vfs_curl/vfs_curl.c @@ -391,6 +391,7 @@ http_content_header_handler (void *ptr, size_t size, size_t nmemb, void *stream) uint8_t key[256]; uint8_t value[256]; int refresh_playlist = 0; + fp->length = -1; // reset length on every request/redirect while (p < end) { if (p <= end - 4) { if (!memcmp (p, "\r\n\r\n", 4)) { @@ -482,7 +483,7 @@ http_thread_func (void *ctx) { int status; - trace ("vfs_curl: started loading data\n"); + trace ("vfs_curl: started loading data %s\n", fp->url); for (;;) { struct curl_slist *headers = NULL; curl_easy_reset (curl); |