From 27a5e8b897e27a8d6d4a9073d5226671ef30f1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 21 Jul 2002 07:59:17 +0000 Subject: [PATCH] =?UTF-8?q?nanosleep=20patch=20by=20Fran=C3=A7ois=20Revol?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 784 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 7375b623d2..82303f577d 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -28,6 +28,10 @@ #include #include #endif +#ifdef __BEOS__ +/* for snooze() */ +#include +#endif #include #include @@ -925,11 +929,15 @@ static int av_encode(AVFormatContext **output_files, if (file_index < 0) { if (stream_no_data) { #ifndef CONFIG_WIN32 +#ifndef __BEOS__ struct timespec ts; ts.tv_sec = 0; ts.tv_nsec = 1000 * 1000 * 10; nanosleep(&ts, 0); +#else + snooze(10 * 1000); /* mmu_man */ /* in microsec */ +#endif #endif stream_no_data = 0; continue; -- GitLab