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
@ -169,14 +169,14 @@ msdk_open_session (mfxIMPL impl)
|
|||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
MFXQueryIMPL (session, &implementation);
|
status = MFXQueryIMPL (session, &implementation);
|
||||||
if (status != MFX_ERR_NONE) {
|
if (status != MFX_ERR_NONE) {
|
||||||
GST_ERROR ("Query implementation failed (%s)",
|
GST_ERROR ("Query implementation failed (%s)",
|
||||||
msdk_status_to_string (status));
|
msdk_status_to_string (status));
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
MFXQueryVersion (session, &version);
|
status = MFXQueryVersion (session, &version);
|
||||||
if (status != MFX_ERR_NONE) {
|
if (status != MFX_ERR_NONE) {
|
||||||
GST_ERROR ("Query version failed (%s)", msdk_status_to_string (status));
|
GST_ERROR ("Query version failed (%s)", msdk_status_to_string (status));
|
||||||
goto failed;
|
goto failed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user