diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-18 16:10:35 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-18 16:46:59 +0200 |
commit | e9a2eea8678708620d80d14290d234b29472044d (patch) | |
tree | a13d30aed70e82c2d9cb36185257a7a33157f569 /gtk2_ardour/add_video_dialog.cc | |
parent | 004b57e9f67c6b818357759005c8e53b041dead4 (diff) |
remove old a3_curl API and switch some curl calls
Keep freesound-moocher as is until freesound-apiv2 branch is merged
or rebased.
Diffstat (limited to 'gtk2_ardour/add_video_dialog.cc')
-rw-r--r-- | gtk2_ardour/add_video_dialog.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/add_video_dialog.cc b/gtk2_ardour/add_video_dialog.cc index 126c161812..bd94c370ba 100644 --- a/gtk2_ardour/add_video_dialog.cc +++ b/gtk2_ardour/add_video_dialog.cc @@ -34,6 +34,7 @@ #include "ardour_ui.h" #include "add_video_dialog.h" +#include "ardour_http.h" #include "utils_videotl.h" #include "pbd/i18n.h" @@ -504,7 +505,7 @@ AddVideoDialog::harvid_request(std::string u) harvid_list->clear(); - char *res = a3_curl_http_get(url, &status); + char* res = ArdourCurl::http_get (url, &status); if (status != 200) { printf("request failed\n"); // XXX harvid_path.set_text(" - request failed -"); @@ -684,7 +685,7 @@ AddVideoDialog::request_preview(std::string u) , (long long) (video_duration * seek_slider.get_value() / 1000.0) , clip_width, clip_height, u.c_str()); - char *data = a3_curl_http_get(url, NULL); + char* data = ArdourCurl::http_get (url, NULL); if (!data) { printf("image preview request failed %s\n", url); imgbuf->fill(RGBA_TO_UINT(0,0,0,255)); |