summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-09-15 18:57:09 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-09-15 18:57:09 +0200
commite491d2434112306b4672cece9a45e1649eb5b03a (patch)
tree9e4c7f49fb70a21dbf9f5b242f8284cf0e883b60 /tests
parentc629a441629dda6c56fdcfdc1463ce4d282506c3 (diff)
use gst_element_factory_get_metadata to replace obsolete API
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/encoding/gstcapslist.c3
-rw-r--r--tests/examples/seek/jsseek.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/examples/encoding/gstcapslist.c b/tests/examples/encoding/gstcapslist.c
index 790e721df..4785291da 100644
--- a/tests/examples/encoding/gstcapslist.c
+++ b/tests/examples/encoding/gstcapslist.c
@@ -248,7 +248,8 @@ gst_caps_list_compatible_codecs (const GstCaps * containerformat,
factory = (GstElementFactory *) tmp->data;
GST_DEBUG ("Trying with factory %s",
- gst_element_factory_get_longname (factory));
+ gst_element_factory_get_metadata (factory,
+ GST_ELEMENT_METADATA_LONGNAME));
/* Match all muxer sink pad templates against the available codec formats */
templates = gst_element_factory_get_static_pad_templates (factory);
diff --git a/tests/examples/seek/jsseek.c b/tests/examples/seek/jsseek.c
index 6f9454f07..974b71f88 100644
--- a/tests/examples/seek/jsseek.c
+++ b/tests/examples/seek/jsseek.c
@@ -1918,7 +1918,8 @@ filter_features (GstPluginFeature * feature, gpointer data)
if (!GST_IS_ELEMENT_FACTORY (feature))
return FALSE;
f = GST_ELEMENT_FACTORY (feature);
- if (!g_strrstr (gst_element_factory_get_klass (f), "Visualization"))
+ if (!g_strrstr (gst_element_factory_get_metadata (f,
+ GST_ELEMENT_METADATA_KLASS), "Visualization"))
return FALSE;
return TRUE;
@@ -1939,7 +1940,8 @@ init_visualization_features (void)
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 (vis_entries, entry);
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (vis_combo), name);