fact = GST_ELEMENT_FACTORY_CAST (feature);
- klass = gst_element_factory_get_klass (fact);
+ klass = gst_element_factory_get_metadata (fact, GST_ELEMENT_METADATA_KLASS);
if (strstr (klass, "Decoder"))
list = &data->decode;
for (walk = list; walk; walk = walk->next) {
factory = GST_ELEMENT_FACTORY (walk->data);
- klass = gst_element_factory_get_klass (factory);
+ klass = gst_element_factory_get_metadata (factory,
+ GST_ELEMENT_METADATA_KLASS);
if (strstr (klass, "Parser"))
/* caps have parsed=true, so skip this parser to avoid loops */
continue;