filter_vis_features (GstPluginFeature * feature, gpointer data)
{
GstElementFactory *f;
+ const gchar *klass;
if (!GST_IS_ELEMENT_FACTORY (feature))
return FALSE;
f = GST_ELEMENT_FACTORY (feature);
- if (!g_strrstr (gst_element_factory_get_klass (f), "Visualization"))
+ klass = gst_element_factory_get_metadata (f, GST_ELEMENT_METADATA_KLASS);
+ if (!g_strrstr (klass, "Visualization"))
return FALSE;
return TRUE;
const gchar *name;
entry.factory = GST_ELEMENT_FACTORY (walk->data);
- name = gst_element_factory_get_longname (entry.factory);
+ name = gst_element_factory_get_metadata (entry.factory,
+ GST_ELEMENT_METADATA_LONGNAME);
g_array_append_val (app->vis_entries, entry);
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (app->vis_combo), name);