decoder: fix out_pool race condtion
commit29348f4a7861aafde6a97c604b8c28a970892e59
authorThomas Guillem <thomas@gllm.fr>
Fri, 27 Nov 2020 15:11:35 +0000 (27 16:11 +0100)
committerThomas Guillem <thomas@gllm.fr>
Mon, 30 Nov 2020 08:36:07 +0000 (30 09:36 +0100)
tree0d40a96cdffdb960238812093af3af1348edcf92
parent87d739eea8c5fd8a5b3cca6ddbbefe6b9b5ca893
decoder: fix out_pool race condtion

The ModuleThread is creating it, so it doesn't need a lock for reading,
but it does need a lock for writing it. Indeed, other threads (the
DecoderThread and the input one) are already reading this variable with
the lock held.
src/input/decoder.c