diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-06-05 02:19:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-06-05 02:19:20 +0100 |
| commit | fdcbd7eb473950f784fba05dcbf4bff115dbbd06 (patch) | |
| tree | 3b093448a6aee50d4705ac7551bedc26a03860bd /src/lib/writer.h | |
| parent | 0dc44faca9db0192fb0fa3af80ca206979041b61 (diff) | |
Don't allow the queue to get too big with REPEAT frames otherwisev2.13.26
there's a long delay at the end of the job while they are written.
We must still write FULL frames even if the queue is long (we only
stop doing that if the queue has too many FULL frames i.e. too much
memory consumption). With this commit we stop writing REPEAT/FAKE
frames when the queue gets long and assume there will always be a
sequence image for writing and hence the main writer thread will reduce
the queue given time.
Diffstat (limited to 'src/lib/writer.h')
| -rw-r--r-- | src/lib/writer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h index ec7b98804..0e1c0e02f 100644 --- a/src/lib/writer.h +++ b/src/lib/writer.h @@ -144,6 +144,7 @@ private: * ordering */ int _maximum_frames_in_memory; + unsigned int _maximum_queue_size; /** number of FULL written frames */ int _full_written; |
