aboutsummaryrefslogtreecommitdiff
path: root/tests/check/generic/states.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check/generic/states.c')
-rw-r--r--tests/check/generic/states.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/check/generic/states.c b/tests/check/generic/states.c
index 4db8a1b..3c2ad7f 100644
--- a/tests/check/generic/states.c
+++ b/tests/check/generic/states.c
@@ -45,7 +45,7 @@ setup (void)
ignorelist = g_strsplit (STATE_IGNORE_ELEMENTS, " ", 0);
}
- plugins = gst_registry_get_plugin_list (gst_registry_get_default ());
+ plugins = gst_registry_get_plugin_list (gst_registry_get ());
for (p = plugins; p; p = p->next) {
GstPlugin *plugin = p->data;
@@ -54,17 +54,19 @@ setup (void)
continue;
features =
- gst_registry_get_feature_list_by_plugin (gst_registry_get_default (),
+ gst_registry_get_feature_list_by_plugin (gst_registry_get (),
gst_plugin_get_name (plugin));
for (f = features; f; f = f->next) {
GstPluginFeature *feature = f->data;
- const gchar *name = gst_plugin_feature_get_name (feature);
+ const gchar *name;
gboolean ignore = FALSE;
if (!GST_IS_ELEMENT_FACTORY (feature))
continue;
+ name = GST_OBJECT_NAME (feature);
+
if (ignorelist) {
gchar **s;
@@ -79,7 +81,7 @@ setup (void)
}
GST_DEBUG ("adding element %s", name);
- elements = g_list_prepend (elements, (gpointer) g_strdup (name));
+ elements = g_list_prepend (elements, g_strdup (name));
}
gst_plugin_feature_list_free (features);
}