[vlc-devel] [PATCH] decoder_helpers: fix clean order

Rémi Denis-Courmont remi at remlab.net
Tue Feb 19 17:37:20 CET 2019


Le tiistaina 19. helmikuuta 2019, 14.24.17 EET Thomas Guillem a écrit :
> The module need to be unloaded before the dec struct is cleaned.
> 
> This fixes an undefined behavior with threaded decoders like avcodec when
> they called decoder_UpdateVideoFormat()/dec_NewPicture() from an other
> thread just before they were unloaded.

Sounds correct.

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the vlc-devel mailing list