Skip to content

Commit

Permalink
[RT Common] Disable checking LUID in SetHandle function (#6530)
Browse files Browse the repository at this point in the history
In miracast wireless display adapter isn't determined during MFT Init
(where MFX session is created), so can't judge whether the device handle
is valid or not.

Co-authored-by: Yuan, Jenny <[email protected]>
  • Loading branch information
gfxVPLsdm and jinyuan-dev authored Mar 8, 2024
1 parent 0aa97d7 commit 3245d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _studio/mfx_lib/shared/src/libmfxsw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ mfxStatus MFX_CDECL MFXInitialize(mfxInitializationParam param, mfxSession* sess

// VendorImplID is used as adapterNum in current implementation - see MFXQueryImplsDescription
// app. supposed just to copy VendorImplID from mfxImplDescription (returned by MFXQueryImplsDescription) to mfxInitializationParam
mfxRes = MFXInit_Internal(par, session, par.Implementation, param.VendorImplID, isSingleThreadMode, true);
mfxRes = MFXInit_Internal(par, session, par.Implementation, param.VendorImplID, isSingleThreadMode);

TRACE_EVENT(MFX_TRACE_API_MFXINITIALIZE_TASK, EVENT_TYPE_END, TR_KEY_MFX_API, make_event_data(par.Implementation, isSingleThreadMode));
MFX_LTRACE_I(MFX_TRACE_LEVEL_API, mfxRes);
Expand Down

0 comments on commit 3245d31

Please sign in to comment.