using namespace std;
using namespace ARDOUR;
+using namespace VideoUtils;
static void freedata_cb (uint8_t *d, void* /*arg*/) {
/* later this can be used with libharvid
int timeout = 1000; // * 5ms -> 5sec
char *res = NULL;
do {
- res=curl_http_get(url, &status);
- if (status == 503) usleep(5000); // try-again
+ res=a3_curl_http_get(url, &status);
+ if (status == 503) Glib::usleep(5000); // try-again
} while (status == 503 && --timeout > 0);
if (status != 200 || !res) {
}
exposeimg();
- /* don't request frames rapidly, wait after user has zoomed */
- usleep(20000);
+ /* don't request frames too quickly, wait after user has zoomed */
+ Glib::usleep(40000);
if (queued_request) {
http_get_again(want_video_frame_number);