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>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-05-20 10:28:05 +02:00
parent 2080979d10
commit b3d9c5bf80
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);
}