summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2020-08-04 12:55:35 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2021-05-17 01:58:24 +0000
commit73cd763b010732ec84bfaab390fb8381eded1b73 (patch)
tree6dea175709404b2f180bafcdeb48b5eac0039f28 /sys
parente7b962d9b57f2b1e61314ac80f22ef89e4c9f5f2 (diff)
downloadgstreamer-plugins-bad-73cd763b010732ec84bfaab390fb8381eded1b73.tar.gz
msdk: exclude the audio code for MFX version 2.0+
MFX version 2.0+ no longer supports audio functions, please refer to the links below for details https://spec.oneapi.com/versions/latest/elements/oneVPL/source/appendix/VPL_intel_media_sdk.html#msdk-full-name-feature-removals https://github.com/oneapi-src/oneVPL This is in preparation for oneVPL support Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1503>
Diffstat (limited to 'sys')
-rw-r--r--sys/msdk/msdk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/msdk/msdk.c b/sys/msdk/msdk.c
index a4ce2c50d..df7fd7583 100644
--- a/sys/msdk/msdk.c
+++ b/sys/msdk/msdk.c
@@ -123,10 +123,12 @@ msdk_status_to_string (mfxStatus status)
return "device operation failure";
case MFX_ERR_MORE_BITSTREAM:
return "expect more bitstream buffers at output";
+#if (MFX_VERSION < 2000)
case MFX_ERR_INCOMPATIBLE_AUDIO_PARAM:
return "incompatible audio parameters";
case MFX_ERR_INVALID_AUDIO_PARAM:
return "invalid audio parameters";
+#endif
/* warnings >0 */
case MFX_WRN_IN_EXECUTION:
return "the previous asynchronous operation is in execution";
@@ -144,8 +146,10 @@ msdk_status_to_string (mfxStatus status)
return "the value is out of valid range";
case MFX_WRN_FILTER_SKIPPED:
return "one of requested filters has been skipped";
+#if (MFX_VERSION < 2000)
case MFX_WRN_INCOMPATIBLE_AUDIO_PARAM:
return "incompatible audio parameters";
+#endif
default:
break;
}