[vlc-devel] [vlc-commits] Add a SAPI synthetizer for Windows

Rémi Denis-Courmont remi at remlab.net
Mon Oct 12 08:50:10 CEST 2015


Le 2015-10-12 00:20, Hugo Beauzée-Luyssen a écrit :
>> +        catch (...) {
>> +            msg_Err(p_filter, "Caught an exception!");
>
> If you're assuming that the underlying code may throw exceptions, you
> should enclose your allocations and Enter/LeaveMTA calls in a RAII
> object.

You need to release any existing COM object before you drop your last 
reference to an apartment. You can't just leave it and then enter it 
again - unless you assume that the MMDevice thread is magically taking 
care of this...

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


More information about the vlc-devel mailing list