summaryrefslogtreecommitdiff
path: root/src/encoder.cc
diff options
context:
space:
mode:
authordeva <deva>2005-04-28 18:49:57 +0000
committerdeva <deva>2005-04-28 18:49:57 +0000
commit462afcd835fcda9f2888aa268cddc29828978c28 (patch)
tree676c64ca6b6b960e7b7a732b6df6d9b2ccce7f66 /src/encoder.cc
parent08f8e358e17f4f2b04d9e9b6b3a049d7a195b46e (diff)
*** empty log message ***
Diffstat (limited to 'src/encoder.cc')
-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;