Merge pull request #22393 from TolyaTalamanov:at/fix-gapi-vpl-windows-build
authorAnatoliy Talamanov <anatoliy.talamanov@intel.com>
Sat, 20 Aug 2022 17:24:41 +0000 (18:24 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Aug 2022 17:24:41 +0000 (20:24 +0300)
* Fix G-API OneVPL compilation

* Fix macro

__WIN32__ -> _WIN32

modules/gapi/src/streaming/onevpl/cfg_param_device_selector.cpp
modules/gapi/test/streaming/gapi_streaming_tests.cpp

index 68d4fce1b9da1c9b68cc6e93459461f1107858c9..26abe3cfb4c4f3b8e24c99486edf557188e09736 100644 (file)
@@ -250,7 +250,7 @@ CfgParamDeviceSelector::CfgParamDeviceSelector(const CfgParams& cfg_params) :
             GAPI_Assert(false && "VPLVAAPIAccelerationPolicy unavailable in current linux configuration");
 #endif // defined(HAVE_VA) || defined(HAVE_VA_INTEL)
 #else // #ifdef __linux__
-            GAPI_Assert(false && "MFX_IMPL_VIA_VAAPI is supported on linux only")
+            GAPI_Assert(false && "MFX_IMPL_VIA_VAAPI is supported on linux only");
 #endif // #ifdef __linux__
             break;
         }
@@ -341,7 +341,7 @@ CfgParamDeviceSelector::CfgParamDeviceSelector(Device::Ptr device_ptr,
             GAPI_Assert(false && "VPLVAAPIAccelerationPolicy unavailable in current linux configuration");
 #endif // defined(HAVE_VA) || defined(HAVE_VA_INTEL)
 #else // #ifdef __linux__
-            GAPI_Assert(false && "MFX_IMPL_VIA_VAAPI is supported on linux only")
+            GAPI_Assert(false && "MFX_IMPL_VIA_VAAPI is supported on linux only");
 #endif // #ifdef __linux__
             break;
         }
@@ -400,7 +400,7 @@ CfgParamDeviceSelector::CfgParamDeviceSelector(const Device &device,
             GAPI_Assert(false && "VPLVAAPIAccelerationPolicy unavailable in current linux configuration");
 #endif // defined(HAVE_VA) || defined(HAVE_VA_INTEL)
 #else // #ifdef __linux__
-            GAPI_Assert(false && "MFX_IMPL_VIA_VAAPI is supported on linux only")
+            GAPI_Assert(false && "MFX_IMPL_VIA_VAAPI is supported on linux only");
 #endif // #ifdef __linux__
             break;
         case AccelType::HOST:
index 5cac4df84581798c6370afe2307c41ac850cee3b..111f43bd194ecb521449aeceed9d5ceaa0d2679b 100644 (file)
@@ -2440,7 +2440,7 @@ TEST(OneVPL_Source, Init)
 
     std::vector<CfgParam> src_params;
     src_params.push_back(CfgParam::create_implementation(MFX_IMPL_TYPE_HARDWARE));
-#ifdef __WIN32
+#ifdef _WIN32
     src_params.push_back(CfgParam::create_acceleration_mode(MFX_ACCEL_MODE_VIA_D3D11));
 #elif defined(__linux__)
     src_params.push_back(CfgParam::create_acceleration_mode(MFX_ACCEL_MODE_VIA_VAAPI));