cygwin patch by (Felix Buenemann <atmosfear at users dot sourceforge dot net>)
Originally committed as revision 883 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Michael Niedermayer
parent
c7e079314b
commit
3f027ca76c
10
ffmpeg.c
10
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;
|
||||
|
||||
Reference in New Issue
Block a user