summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorFelix Bünemann <atmosfear@users.sourceforge.net>2002-08-30 19:34:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-08-30 19:34:55 +0000
commit3f027ca76cb1424fa1c80bf76499e089921f537b (patch)
tree427dd2163284f0783208fb6eb457051fedf693c7 /ffmpeg.c
parentc7e079314bc47ed09826ec343f4582226c6ed296 (diff)
cygwin patch by (Felix Buenemann <atmosfear at users dot sourceforge dot net>)
Originally committed as revision 883 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 7816da9391..d95bb1813b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -943,15 +943,17 @@ static int av_encode(AVFormatContext **output_files,
/* if none, if is finished */
if (file_index < 0) {
if (stream_no_data) {
-#ifndef CONFIG_WIN32
-#ifndef __BEOS__
+#ifndef CONFIG_WIN32 /* no usleep in VisualC ? */
+#ifdef __BEOS__
+ snooze(10 * 1000); /* mmu_man */ /* in microsec */
+#elif defined(__CYGWIN__)
+ usleep(10 * 1000);
+#else
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;