summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2021-05-20 10:28:05 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2021-05-20 10:35:32 +0200
commitb3d9c5bf803d282b0581eec338c3ae2ecfe0a4e1 (patch)
tree274634526ad7904b2bd17577b6b810d11a02f41d
parent2080979d102a34dbb8710d36ea45374cadf38d8e (diff)
plugins: Demote rank of vaapipostproc and vaapioverlay.
Since almost all video filters have rank NONE, these both elements should be NONE too. This is useful for autovideoconvert and other bins, and users might force to use these by setting the environment variable GST_PLUGIN_FEATURE_RANK. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/429>
-rw-r--r--gst/vaapi/gstvaapi.c2
-rw-r--r--gst/vaapi/gstvaapioverlay.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapi.c b/gst/vaapi/gstvaapi.c
index d4499f6c..35326248 100644
--- a/gst/vaapi/gstvaapi.c
+++ b/gst/vaapi/gstvaapi.c
@@ -207,7 +207,7 @@ plugin_init (GstPlugin * plugin)
gst_vaapioverlay_register (plugin, display);
gst_element_register (plugin, "vaapipostproc",
- GST_RANK_PRIMARY, GST_TYPE_VAAPIPOSTPROC);
+ GST_RANK_NONE, GST_TYPE_VAAPIPOSTPROC);
gst_element_register (plugin, "vaapidecodebin",
GST_RANK_PRIMARY + 2, GST_TYPE_VAAPI_DECODE_BIN);
diff --git a/gst/vaapi/gstvaapioverlay.c b/gst/vaapi/gstvaapioverlay.c
index 53efdace..c70b01a1 100644
--- a/gst/vaapi/gstvaapioverlay.c
+++ b/gst/vaapi/gstvaapioverlay.c
@@ -681,6 +681,6 @@ gst_vaapioverlay_register (GstPlugin * plugin, GstVaapiDisplay * display)
return FALSE;
gst_vaapi_blend_replace (&blend, NULL);
- return gst_element_register (plugin, "vaapioverlay",
- GST_RANK_PRIMARY, GST_TYPE_VAAPI_OVERLAY);
+ return gst_element_register (plugin, "vaapioverlay", GST_RANK_NONE,
+ GST_TYPE_VAAPI_OVERLAY);
}