summaryrefslogtreecommitdiff
path: root/plugins/vfs_curl
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-22 18:05:12 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-22 18:05:12 +0200
commit7149aa6e4e7cb1bd71d1a0cb41f48000d5416941 (patch)
tree5c80744e3b640d3c369d05a75a78bf8cd08fc5fe /plugins/vfs_curl
parentc1bfa37ce69cf3966cbcca637645fb7043baa124 (diff)
don't try to resume (seek) when restarting shoutcast streams
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)) {