mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
msdk: Fix mixed declarations warning
msdk.c:194:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
This commit is contained in:
parent
e3297be433
commit
00cb881431
1 changed files with 8 additions and 6 deletions
|
@ -191,12 +191,14 @@ msdk_open_session (mfxIMPL impl)
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
#if (MFX_VERSION >= 1019)
|
#if (MFX_VERSION >= 1019)
|
||||||
mfxPlatform platform = { 0 };
|
{
|
||||||
status = MFXVideoCORE_QueryPlatform (session, &platform);
|
mfxPlatform platform = { 0 };
|
||||||
if (MFX_ERR_NONE == status) {
|
status = MFXVideoCORE_QueryPlatform (session, &platform);
|
||||||
GST_INFO ("Detected MFX platform with device code %d", platform.CodeName);
|
if (MFX_ERR_NONE == status) {
|
||||||
} else {
|
GST_INFO ("Detected MFX platform with device code %d", platform.CodeName);
|
||||||
GST_WARNING ("Platform auto-detection failed with MFX status %d", status);
|
} else {
|
||||||
|
GST_WARNING ("Platform auto-detection failed with MFX status %d", status);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue