diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-07-19 18:46:52 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-07-22 13:44:32 +1000 |
commit | d975d84437119b4595619a523f1d2afaa14965ff (patch) | |
tree | 4cf87217219ce890c128e7e122bc253b35980dbd /gtk2_ardour/video_image_frame.cc | |
parent | c0e65452b1d8202698d89bfa593da5e0c6aaa015 (diff) |
Use GLib::usleep for portability
Diffstat (limited to 'gtk2_ardour/video_image_frame.cc')
-rw-r--r-- | gtk2_ardour/video_image_frame.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/video_image_frame.cc b/gtk2_ardour/video_image_frame.cc index 3c39dea77b..310f3a68d3 100644 --- a/gtk2_ardour/video_image_frame.cc +++ b/gtk2_ardour/video_image_frame.cc @@ -197,7 +197,7 @@ http_get_thread (void *arg) { char *res = NULL; do { res=curl_http_get(url, &status); - if (status == 503) usleep(5000); // try-again + if (status == 503) Glib::usleep(5000); // try-again } while (status == 503 && --timeout > 0); if (status != 200 || !res) { @@ -246,7 +246,7 @@ VideoImageFrame::http_download_done (char *data){ exposeimg(); /* don't request frames too quickly, wait after user has zoomed */ - usleep(40000); + Glib::usleep(40000); if (queued_request) { http_get_again(want_video_frame_number); |