Commit 43e5eaed authored by Haihao Xiang's avatar Haihao Xiang Committed by Víctor Manuel Jáquez Leal
Browse files

msdk: assign the returned value to status variable

Othervise the subsequent check will use the stale value of status
variable
parent 9a9e01a1
...@@ -169,14 +169,14 @@ msdk_open_session (mfxIMPL impl) ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment