mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
msdk: Fix initialization of the msdk_session.impl_idx
This fixes the issue of msdk_session.impl_idx not being initialized. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4448>
This commit is contained in:
parent
bb2c5981fe
commit
3883ae8c2a
1 changed files with 3 additions and 0 deletions
|
@ -354,6 +354,7 @@ msdk_init_msdk_session (mfxIMPL impl, mfxVersion * pver,
|
|||
|
||||
msdk_session->session = session;
|
||||
msdk_session->loader = NULL;
|
||||
msdk_session->impl_idx = 0;
|
||||
|
||||
return MFX_ERR_NONE;
|
||||
}
|
||||
|
@ -403,6 +404,7 @@ msdk_open_session (mfxIMPL impl)
|
|||
|
||||
msdk_session.session = NULL;
|
||||
msdk_session.loader = NULL;
|
||||
msdk_session.impl_idx = 0;
|
||||
status = msdk_init_msdk_session (impl, &version, &msdk_session);
|
||||
|
||||
if (status != MFX_ERR_NONE)
|
||||
|
@ -433,6 +435,7 @@ failed:
|
|||
msdk_close_session (&msdk_session);
|
||||
msdk_session.session = NULL;
|
||||
msdk_session.loader = NULL;
|
||||
msdk_session.impl_idx = 0;
|
||||
return msdk_session;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue