From b3d9c5bf803d282b0581eec338c3ae2ecfe0a4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 20 May 2021 10:28:05 +0200 Subject: 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: --- gst/vaapi/gstvaapi.c | 2 +- gst/vaapi/gstvaapioverlay.c | 4 ++-- 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); } -- cgit v1.2.1