Don't allow the queue to get too big with REPEAT frames otherwise v2.13.26
authorCarl Hetherington <cth@carlh.net>
Tue, 5 Jun 2018 01:19:20 +0000 (02:19 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 5 Jun 2018 01:19:20 +0000 (02:19 +0100)
commitfdcbd7eb473950f784fba05dcbf4bff115dbbd06
tree3b093448a6aee50d4705ac7551bedc26a03860bd
parent0dc44faca9db0192fb0fa3af80ca206979041b61
Don't allow the queue to get too big with REPEAT frames otherwise
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.
ChangeLog
src/lib/writer.cc
src/lib/writer.h