summaryrefslogtreecommitdiff
path: root/plugins/vfs_curl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vfs_curl')
-rw-r--r--plugins/vfs_curl/vfs_curl.c2
1 files changed, 1 insertions, 1 deletions
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)) {