From f026a8acbf1976174ca351f9125b1de16f46b763 Mon Sep 17 00:00:00 2001 From: Colin Fletcher Date: Mon, 5 Jan 2026 18:09:15 +0000 Subject: [PATCH] soundcloud, freesound: use correct curl option for progress bars Although setting CURLOPT_PROGRESSDATA appears to work to set the pointer passed into the new CURL_XFERINFOFUNCTION option, the documented option is now CURLOPT_XFERINFODATA. --- gtk2_ardour/sfdb_freesound_mootcher.cc | 2 +- libs/ardour/soundcloud_upload.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/sfdb_freesound_mootcher.cc b/gtk2_ardour/sfdb_freesound_mootcher.cc index eccd3b85da..54ba3b1dd1 100644 --- a/gtk2_ardour/sfdb_freesound_mootcher.cc +++ b/gtk2_ardour/sfdb_freesound_mootcher.cc @@ -552,7 +552,7 @@ Mootcher::fetchAudioFile(std::string originalFileName, std::string theID, std::s cancel_download = false; curl_easy_setopt (curl, CURLOPT_NOPROGRESS, 0); // turn on the progress bar curl_easy_setopt (curl, CURLOPT_XFERINFOFUNCTION, progress_callback); - curl_easy_setopt (curl, CURLOPT_PROGRESSDATA, this); + curl_easy_setopt (curl, CURLOPT_XFERINFODATA, this); if (oauth_token == "") { if (!get_oauth_token()) { diff --git a/libs/ardour/soundcloud_upload.cc b/libs/ardour/soundcloud_upload.cc index 4173390df8..e2abfaeb78 100644 --- a/libs/ardour/soundcloud_upload.cc +++ b/libs/ardour/soundcloud_upload.cc @@ -203,7 +203,7 @@ SoundcloudUploader::Upload(std::string file_path, std::string title, std::string curl_easy_setopt (curl_handle, CURLOPT_NOPROGRESS, 0); // turn on the progress bar curl_easy_setopt (curl_handle, CURLOPT_XFERINFOFUNCTION, &SoundcloudUploader::progress_callback); - curl_easy_setopt (curl_handle, CURLOPT_PROGRESSDATA, this); + curl_easy_setopt (curl_handle, CURLOPT_XFERINFODATA, this); curl_multi_add_handle(multi_handle, curl_handle);