input: decoder: fix format cleaning on destroy/reload
When destroying or reloading the decoder, the decoder module can be triggering a decoder_UpdateVideoFormat call which will check the format we've been clearing.
Reverse the cleaning and destruction of decoder module.
Regression from 08b24866.
Fixes #27532 (closed)