X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fadd_video_dialog.cc;h=5c0db1ff2631b5d6c9f46b41200f2e65c3f74e85;hb=14c390ed027b3ba1c48084502677d1a1287bfc05;hp=22679755a52f36a864ed25f08deb3451f337dd74;hpb=30b087ab3d28f1585987fa3f6ae006562ae192e3;p=ardour.git diff --git a/gtk2_ardour/add_video_dialog.cc b/gtk2_ardour/add_video_dialog.cc index 22679755a5..5c0db1ff26 100644 --- a/gtk2_ardour/add_video_dialog.cc +++ b/gtk2_ardour/add_video_dialog.cc @@ -519,7 +519,7 @@ AddVideoDialog::harvid_request(std::string u) harvid_list->clear(); - char* res = ArdourCurl::http_get (url, &status); + char* res = ArdourCurl::http_get (url, &status, false); if (status != 200) { printf("request failed\n"); // XXX harvid_path.set_text(" - request failed -"); @@ -693,13 +693,13 @@ AddVideoDialog::request_preview(std::string u) clip_yoff = (PREVIEW_HEIGHT - clip_height)/2; char url[2048]; - snprintf(url, sizeof(url), "%s%s?sample=%lli&w=%d&h=%di&file=%s&format=rgb" + snprintf(url, sizeof(url), "%s%s?frame=%lli&w=%d&h=%di&file=%s&format=rgb" , video_server_url.c_str() , (video_server_url.length()>0 && video_server_url.at(video_server_url.length()-1) == '/')?"":"/" , (long long) (video_duration * seek_slider.get_value() / 1000.0) , clip_width, clip_height, u.c_str()); - char* data = ArdourCurl::http_get (url, NULL); + char* data = ArdourCurl::http_get (url, NULL, false); if (!data) { printf("image preview request failed %s\n", url); imgbuf->fill(RGBA_TO_UINT(0,0,0,255));