Hi, owt team,
recently I got a crash while using hardware acceleration features by setting SetVideoHardwareAccelerationEnabled to true.
I found:
below 2 members
// Begin MSDK variables
MFXVideoSession* m_mfx_session_;
std::unique_ptr<MFXVideoDECODE> m_pmfx_dec_;
in class MSDKVideoDecoder,
AfterMSDKVideoDecoder::Release() is called, in MSDKFactory::DestroySession() the m_mfx_session_ will be deleted, so mfxSession in MFXVideoSession will be closed,
the problem is: the SAMEmfxSessionobject which is also in MFXVideoDECODE get refered when MSDKVideoDecoder::~MSDKVideoDecoder() is called, so I got "Access Violation" exception.
Hi, owt team, recently I got a crash while using hardware acceleration features by setting
SetVideoHardwareAccelerationEnabled
to true.I found: below 2 members
in class
MSDKVideoDecoder
, AfterMSDKVideoDecoder::Release()
is called, inMSDKFactory::DestroySession()
them_mfx_session_
will be deleted, somfxSession
inMFXVideoSession
will be closed, the problem is: the SAMEmfxSession
object which is also inMFXVideoDECODE
get refered whenMSDKVideoDecoder::~MSDKVideoDecoder()
is called, so I got "Access Violation" exception.