Replace gst_element_factory_get_klass with gst_element_factory_get_metadata

This commit is contained in:
Jonas Kvinge
2023-04-22 16:49:37 +02:00
parent 5c4a6487c0
commit 726bfbefb0
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ GstElement *Transcoder::CreateElementForMimeType(const QString &element_type, co
GstElementFactory *factory = GST_ELEMENT_FACTORY(f->data);
// Is this the right type of plugin?
if (QString(gst_element_factory_get_klass(factory)).contains(element_type)) {
if (QString(gst_element_factory_get_metadata(factory, GST_ELEMENT_METADATA_KLASS)).contains(element_type)) {
const GList *const templates = gst_element_factory_get_static_pad_templates(factory);
for (const GList *t = templates; t; t = g_list_next(t)) {
// Only interested in source pads