decoder: fix out_pool NULL deref
commitfa3e6c11da19643f77e76c6c73ca898313f70512
authorThomas Guillem <thomas@gllm.fr>
Tue, 10 Mar 2020 07:56:00 +0000 (10 08:56 +0100)
committerThomas Guillem <thomas@gllm.fr>
Tue, 10 Mar 2020 16:14:15 +0000 (10 17:14 +0100)
tree5cd1422af3c1d9158b3e62a2f9b1ad51da6734b8
parentb5fe394e417b2f452ceb8099e020aaeab7cb1a93
decoder: fix out_pool NULL deref

Once the format is configured, a decoder module can request new picture_t via
decoder_NewPicture() asynchronously. Therefore, the out_pool need to outlive
the decoder module.

This patch fixes a NULL deref from decoder_NewPicture() when the decoder is
being destroyed. Indeed, the module need to be unloaded before the out_pool is
destroyed.
src/input/decoder.c