From a0a9e9e3cff7c105a47518ef2bd460adc9438fb4 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 21 May 2021 22:25:15 -0400 Subject: [PATCH] autoconvert: Fix the way we compare element types We used to conside elements that were subclassses of another element type as being the same (for example with videoconvertscale, bother videoconvert and videoscale are subclasses of videoconvertscale and that code was lost) Part-of: --- subprojects/gst-plugins-bad/gst/autoconvert/gstautoconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/autoconvert/gstautoconvert.c b/subprojects/gst-plugins-bad/gst/autoconvert/gstautoconvert.c index e70d204f6a..14aea666ef 100644 --- a/subprojects/gst-plugins-bad/gst/autoconvert/gstautoconvert.c +++ b/subprojects/gst-plugins-bad/gst/autoconvert/gstautoconvert.c @@ -436,7 +436,7 @@ gst_auto_convert_get_element_by_type (GstAutoConvert * autoconvert, GType type) GST_OBJECT_LOCK (autoconvert); for (item = bin->children; item; item = item->next) { - if (G_TYPE_CHECK_INSTANCE_TYPE (item->data, type)) { + if (G_OBJECT_TYPE(item->data) == type) { element = gst_object_ref (item->data); break; }