dshow: check CoInitialize() in callbacks
If the calling thread is using COM with MTA model, then CoInitializeEx() will fail, and CoUninitialize() will be unbalanced. Ultimately, the calling thread is likely to crash. (CoInitializeEx() could also fail in case of memory error, but that is unlikely).
Showing
Please register or sign in to comment