From 7149aa6e4e7cb1bd71d1a0cb41f48000d5416941 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 22 May 2010 18:05:12 +0200 Subject: don't try to resume (seek) when restarting shoutcast streams --- plugins/vfs_curl/vfs_curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/vfs_curl') diff --git a/plugins/vfs_curl/vfs_curl.c b/plugins/vfs_curl/vfs_curl.c index 5476f5c4..eb64b17d 100644 --- a/plugins/vfs_curl/vfs_curl.c +++ b/plugins/vfs_curl/vfs_curl.c @@ -498,7 +498,7 @@ http_thread_func (void *ctx) { curl_easy_setopt (curl, CURLOPT_MAXREDIRS, 10); headers = curl_slist_append (headers, "Icy-Metadata:1"); curl_easy_setopt (curl, CURLOPT_HTTPHEADER, headers); - if (fp->pos > 0) { + if (fp->pos > 0 && fp->length >= 0) { curl_easy_setopt (curl, CURLOPT_RESUME_FROM, fp->pos); } if (deadbeef->conf_get_int ("network.proxy", 0)) { -- cgit v1.2.3