diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-07-20 10:26:30 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-07-22 13:44:32 +1000 |
commit | 486720de61a22d7c74e956a2478cf0f581d66d9e (patch) | |
tree | b4559f945909f872e4fe48b9f09084e34e75129f /gtk2_ardour/video_monitor.cc | |
parent | ccaa29d210c723aae458bbf607b29fe2b4755b2e (diff) |
Use Glib::usleep for portability
Diffstat (limited to 'gtk2_ardour/video_monitor.cc')
-rw-r--r-- | gtk2_ardour/video_monitor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/video_monitor.cc b/gtk2_ardour/video_monitor.cc index 2c265365fa..ae4d5faacc 100644 --- a/gtk2_ardour/video_monitor.cc +++ b/gtk2_ardour/video_monitor.cc @@ -94,7 +94,7 @@ VideoMonitor::query_full_state (bool wait) process->write_to_stdin("get osdcfg\n"); int timeout = 40; if (wait && knownstate !=127 && --timeout) { - usleep(50000); + Glib::usleep(50000); sched_yield(); } } @@ -113,7 +113,7 @@ VideoMonitor::quit () */ int timeout = 40; while (is_started() && --timeout) { - usleep(50000); + Glib::usleep(50000); sched_yield(); } if (timeout <= 0) { |