|
From: Lasse Kärkkäi. <tr...@us...> - 2009-07-06 04:51:18
|
Module: performous
Branch: master
Commit: 77f60f960b00861927da75d9a32f814a09755717
Author: Lasse Karkkainen <tro...@tr...>
Date: Mon Jul 6 07:50:32 2009 +0300
Boost 1.34 compatibility: use old style sleep.
---
game/ffmpeg.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/ffmpeg.cc b/game/ffmpeg.cc
index ad8df2f..31f49cd 100644
--- a/game/ffmpeg.cc
+++ b/game/ffmpeg.cc
@@ -125,7 +125,7 @@ extern "C" void performous_ffmpeg_crash_hack(int sig) {
std::signal(SIGABRT, sigabrt);
std::signal(SIGSEGV, sigsegv);
(*ffmpeg_ptr)->crash();
- boost::this_thread::sleep(boost::posix_time::hours(10000));
+ while (1) boost::thread::sleep(now() + 1000.0);
} // Uh-oh, FFMPEG goes again; wait here until eternity
sighandler h = (sig == SIGABRT ? sigabrt : sigsegv);
if (h && h != performous_ffmpeg_crash_hack) h(sig); // From another thread, call original handler
|