examples: don't use deprecated API
This commit is contained in:
parent
71e46b2478
commit
bd22e3c7cb
@ -1206,11 +1206,13 @@ static gboolean
|
||||
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;
|
||||
@ -1231,7 +1233,8 @@ init_visualization_features (PlaybackApp * app)
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user