mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
msdk: assign the returned value to status variable
Othervise the subsequent check will use the stale value of status variable
This commit is contained in:
parent
9a9e01a1a5
commit
43e5eaeda1
1 changed files with 2 additions and 2 deletions
|
@ -169,14 +169,14 @@ msdk_open_session (mfxIMPL impl)
|
|||
goto failed;
|
||||
}
|
||||
|
||||
MFXQueryIMPL (session, &implementation);
|
||||
status = MFXQueryIMPL (session, &implementation);
|
||||
if (status != MFX_ERR_NONE) {
|
||||
GST_ERROR ("Query implementation failed (%s)",
|
||||
msdk_status_to_string (status));
|
||||
goto failed;
|
||||
}
|
||||
|
||||
MFXQueryVersion (session, &version);
|
||||
status = MFXQueryVersion (session, &version);
|
||||
if (status != MFX_ERR_NONE) {
|
||||
GST_ERROR ("Query version failed (%s)", msdk_status_to_string (status));
|
||||
goto failed;
|
||||
|
|
Loading…
Reference in a new issue