From 462afcd835fcda9f2888aa268cddc29828978c28 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 28 Apr 2005 18:49:57 +0000 Subject: *** empty log message *** --- src/encoder.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3