Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3076 Discussions

mfx_dispatch can lead to unexpected process behaviour

OTorg
New Contributor III
546 Views

mfx_dll_load() makes two SetErrorMode() calls, to set SEM_FAILCRITICALERRORS and then to revert to original.
But SetErrorMode() is process-wide!
This may lead to unexpected behaviour at multithreading modular applications.
The correct way is to use SetThreadErrorMode(). It was introduced at win7 and minimal os imsdk requires is win7.

0 Kudos
1 Solution
Petter_L_Intel
Employee
546 Views

Hi,

Thanks for your feedback. We will explore improving the behavior for the next Media SDK release.

Regards,
Petter 

View solution in original post

0 Kudos
2 Replies
Petter_L_Intel
Employee
547 Views

Hi,

Thanks for your feedback. We will explore improving the behavior for the next Media SDK release.

Regards,
Petter 

0 Kudos
OTorg
New Contributor III
546 Views

Ok. Thank you!

PS:
The same SetErrorMode calls are present at DXDevice::LoadDLLModule() also...

0 Kudos
Reply