summaryrefslogtreecommitdiff
path: root/src/rmd_flush_to_ogg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rmd_flush_to_ogg.c')
-rw-r--r--src/rmd_flush_to_ogg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmd_flush_to_ogg.c b/src/rmd_flush_to_ogg.c
index d2e7f44..4a9fb71 100644
--- a/src/rmd_flush_to_ogg.c
+++ b/src/rmd_flush_to_ogg.c
@@ -37,10 +37,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+#include <time.h>
#include <unistd.h>
-
//we copy the page because the next call to ogg_stream_pageout
//will invalidate it. But we must have pages from
//both streams at every time in
@@ -162,7 +162,7 @@ void *rmdFlushToOgg(ProgData *pdata) {
audioflag=0;
#endif
if ((!audioflag && !v_st_fin && !pdata->args.nosound) || (!videoflag && !th_st_fin)) {
- usleep(10000);
+ nanosleep(&(struct timespec){ .tv_nsec = 10000000 }, NULL);
continue;
}
© All Rights Reserved