diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-13 00:56:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-13 01:14:21 +0200 |
| commit | f02501491e262c52b65c3fea6e180814e132dad8 (patch) | |
| tree | 2581f29b86cee412697b4d72c0aa521ff404fd45 /src/lib/audio_decoder.cc | |
| parent | 518dc747e2437d0a51ff4582e79f47ea1754f057 (diff) | |
Hopefully fix occasional hang in j2k_encoder_deadlock_test.
Previously too many frames were queued for encoding, which AFAICS meant
that (if the CPU was busy) we would get to the point where too many frames
were in the encoder queue, so that we blocked waiting for it to clear,
and then simultaneously too many frames were in the writer queue, which
(in this test) would never clear.
At this point we would be backed up waiting for Writer::write() to happen
in J2KEncoder::encoder_thread() so that the encoder queue could be cleared,
but nobody is calling Writer::write().
Diffstat (limited to 'src/lib/audio_decoder.cc')
0 files changed, 0 insertions, 0 deletions
