Merge pull request #22507 from TolyaTalamanov:at/replace-mfx-major-version-assert-to-warning

G-API: Replace MFX major version assertion to warning
pull/22526/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 1ae801554d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      modules/gapi/src/streaming/onevpl/source_priv.cpp

@ -227,16 +227,15 @@ GSource::Priv::Priv(std::shared_ptr<IDataProvider> provider,
// TODO Add factory static method in ProcessingEngineBase
if (mfx_impl_description->ApiVersion.Major >= VPL_NEW_API_MAJOR_VERSION) {
GAPI_Assert(false &&
GAPI_LOG_WARNING(NULL,
"GSource mfx_impl_description->ApiVersion.Major >= VPL_NEW_API_MAJOR_VERSION"
" - is not implemented");
" - is not implemented. Rollback to MFX implementation");
}
const auto& transcode_params = VPLLegacyTranscodeEngine::get_vpp_params(preferred_params);
if (!transcode_params.empty()) {
engine.reset(new VPLLegacyTranscodeEngine(std::move(acceleration)));
} else {
const auto& transcode_params = VPLLegacyTranscodeEngine::get_vpp_params(preferred_params);
if (!transcode_params.empty()) {
engine.reset(new VPLLegacyTranscodeEngine(std::move(acceleration)));
} else {
engine.reset(new VPLLegacyDecodeEngine(std::move(acceleration)));
}
engine.reset(new VPLLegacyDecodeEngine(std::move(acceleration)));
}
}

Loading…
Cancel
Save