decoder: fix forgotten vout error state
commit0abed25515a492896c89cf36ab1e4befc7dd23b6
authorThomas Guillem <thomas@gllm.fr>
Wed, 16 Dec 2020 15:43:31 +0000 (16 16:43 +0100)
committerThomas Guillem <thomas@gllm.fr>
Mon, 21 Dec 2020 12:40:40 +0000 (21 13:40 +0100)
treeb9d76411631bc72aadb2261da3af087d15b56dfe
parent5ab3e74bcd7a2e02a4860a524955be365557ef46
decoder: fix forgotten vout error state

If the pool allocation fails or if the vout fails to start (via
input_resource_RequestVout()), an error is returned from
decoder_UpdateVideoFormat(). The next call to
decoder_UpdateVideoFormat() will return a success because the vctx will
be the same since only this variable is checked to detect a vout change.

To fix this issue, clean the owner->fmt and release the vctx when
returning an error.
src/input/decoder.c