summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-10-25 20:44:05 +0200
committerGravatar waker <wakeroid@gmail.com>2010-10-25 20:44:05 +0200
commit7adf4200bd21d8525f40e6329b7e007547193332 (patch)
treed17b4955121d09bdbbfab68317c11f92ff361068 /plugins
parent07a6beda2ad5903c2308c4865e98a923aeaa8d18 (diff)
fixed playing icy streams with redirections (reset content-length on every redirect)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/vfs_curl/vfs_curl.c3
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);