[vlc-devel] [PATCH]: fix a CoInitializeEx() issue on Windows

Rémi Denis-Courmont remi at remlab.net
Tue Jul 16 20:16:06 CEST 2019


Le perjantaina 12. heinäkuuta 2019, 16.34.16 EEST Hugo Beauzée-Luyssen a écrit 
:
> However it seems CommonChangeThumbnailClip might still be called from the
> vout thread, and I fear that changing the object concurrency mode for the
> vout thread won't play well with SAPI, which is using MTA. I didn't find
> any requirement for SAPI to use COINIT_MULTITHREADED, so I suppose SAPI
> should be changed as well (unless I missed such a requirement, in which
> case I'm really not sure what to do here)

Decoders are used from multiple thread, so they need to use the MTA if 
anything.

AFAIK SAPI was always wrong, as was pointed way back when it was reviewed. But 
that is a different issue: it assumes that the MTA is referenced and kept 
around out of thin air. In practice it works because something else, e.g. the 
mmdevice plug-in, sticks around with the MTA.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list