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:
Haihao Xiang 2018-12-11 15:04:12 +08:00 committed by Víctor Manuel Jáquez Leal
parent 9a9e01a1a5
commit 43e5eaeda1

View file

@ -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;