summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/encoder.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/encoder.cc b/src/encoder.cc
index c304b5a..8ba681a 100644
--- a/src/encoder.cc
+++ b/src/encoder.cc
@@ -151,13 +151,16 @@ void Encoder::stop(n_savestate save) {
// Lock the queue and wait until all elements are sent on the network.
queue->lock();
+ fprintf(stderr, "Emptying queue"); fflush(stderr);
while(queue->peek()) {
/* Remove any late buffer */
/* We don't care, the encoder finishes them all */
ts.tv_sec = 0;
- ts.tv_nsec = 100000000L; // 100ms
+ ts.tv_nsec = 500000000L; // 100ms
+ fprintf(stderr, "."); fflush(stderr);
nanosleep(&ts, NULL);
}
+ fprintf(stderr, "done!\n"); fflush(stderr);
record = 0;