From 8266f534a775aefb03bbe70506ddf98f61c0b65a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 21 May 2021 23:06:34 -0400 Subject: [PATCH] autovideoconvert: Ignore elements with rank == NONE Part-of: --- .../gst-plugins-bad/gst/autoconvert/gstautovideoconvert.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/autoconvert/gstautovideoconvert.c b/subprojects/gst-plugins-bad/gst/autoconvert/gstautovideoconvert.c index 07ffb46be4..4c084ea4a9 100644 --- a/subprojects/gst-plugins-bad/gst/autoconvert/gstautovideoconvert.c +++ b/subprojects/gst-plugins-bad/gst/autoconvert/gstautovideoconvert.c @@ -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 */