mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 12:55:57 +01:00
Update another deprecated libcurl API
'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
This commit is contained in:
parent
1d04fa5a39
commit
53cd5e34c4
2 changed files with 4 additions and 4 deletions
|
|
@ -151,8 +151,8 @@ Downloader::download ()
|
|||
CURLcode res = curl_easy_perform (curl);
|
||||
|
||||
if (res == CURLE_OK) {
|
||||
double dsize;
|
||||
curl_easy_getinfo (curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &dsize);
|
||||
curl_off_t dsize;
|
||||
curl_easy_getinfo (curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &dsize);
|
||||
_download_size = dsize;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,11 +71,11 @@ get_url (void* arg)
|
|||
|
||||
/* get size */
|
||||
if (r->mp.query_length) {
|
||||
double content_length = 0;
|
||||
curl_off_t content_length = 0;
|
||||
curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
|
||||
curl_easy_perform (curl);
|
||||
if (CURLE_OK == curl_easy_getinfo (curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &content_length) && content_length > 0) {
|
||||
if (CURLE_OK == curl_easy_getinfo (curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &content_length) && content_length > 0) {
|
||||
r->mp.length = content_length;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue