Commit 4d8525ab authored by michaelni's avatar michaelni

nanosleep patch by François Revol <revol at free dot fr>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@784 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bd63cf47
......@@ -28,6 +28,10 @@
#include <termios.h>
#include <sys/resource.h>
#endif
#ifdef __BEOS__
/* for snooze() */
#include <OS.h>
#endif
#include <time.h>
#include <ctype.h>
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment