autovideoconvert: Ignore elements with rank == NONE

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899>
This commit is contained in:
Thibault Saunier 2021-05-21 23:06:34 -04:00 committed by GStreamer Marge Bot
parent a0a9e9e3cf
commit 8266f534a7

View file

@ -61,6 +61,9 @@ gst_auto_video_convert_element_filter (GstPluginFeature * feature,
if (!g_strcmp0 (GST_OBJECT_NAME (feature), "autovideoconvert"))
return FALSE;
if (gst_plugin_feature_get_rank (feature) <= GST_RANK_NONE)
return FALSE;
klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY_CAST (feature),
GST_ELEMENT_METADATA_KLASS);
/* only select color space converter */