Update codec-quality display when ExportFormat changes
[ardour.git] / gtk2_ardour / add_video_dialog.cc
index 22679755a52f36a864ed25f08deb3451f337dd74..5c0db1ff2631b5d6c9f46b41200f2e65c3f74e85 100644 (file)
@@ -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));