aboutsummaryrefslogtreecommitdiff
path: root/common/gstdoc-scangobj
diff options
context:
space:
mode:
Diffstat (limited to 'common/gstdoc-scangobj')
-rwxr-xr-xcommon/gstdoc-scangobj15
1 files changed, 10 insertions, 5 deletions
diff --git a/common/gstdoc-scangobj b/common/gstdoc-scangobj
index 5b13352..b0699c7 100755
--- a/common/gstdoc-scangobj
+++ b/common/gstdoc-scangobj
@@ -142,6 +142,9 @@ for (<TYPES>) {
$ntypes = @types + @impl_types + 1;
print OUTPUT <<EOT;
+
+/* file generated by common/gstdoc-scangobj */
+
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
@@ -182,7 +185,9 @@ xmlprint (gint indent, const gchar *tag, const gchar *data)
static gint
gst_feature_sort_compare (gconstpointer a, gconstpointer b)
{
- return strcmp (((GstPluginFeature *)a)->name, ((GstPluginFeature *)b)->name);
+ const gchar *name_a = gst_plugin_feature_get_name ((GstPluginFeature *) a);
+ const gchar *name_b = gst_plugin_feature_get_name ((GstPluginFeature *) b);
+ return strcmp (name_a, name_b);
}
static gint
@@ -216,7 +221,7 @@ get_object_types (void)
gboolean reinspect;
/* get a list of features from plugins in our source module */
- plugins = gst_registry_get_plugin_list (gst_registry_get_default());
+ plugins = gst_registry_get_plugin_list (gst_registry_get ());
xmlstr = g_string_new ("");
@@ -267,7 +272,7 @@ get_object_types (void)
}
features =
- gst_registry_get_feature_list_by_plugin (gst_registry_get_default (),
+ gst_registry_get_feature_list_by_plugin (gst_registry_get (),
plugin->desc.name);
/* sort factories by feature->name */
@@ -287,7 +292,7 @@ get_object_types (void)
const gchar *pad_pres[] = { "always","sometimes","request" };
GList *pads, *pad;
- $debug_log (" feature: %s", feature->name);
+ $debug_log (" feature: %s", gst_plugin_feature_get_name (feature));
factory = GST_ELEMENT_FACTORY (feature);
factories = g_list_prepend (factories, factory);
@@ -295,7 +300,7 @@ get_object_types (void)
if (reinspect) {
/* output element data */
fputs (" <element>\\n", inspect);
- fputs (xmlprint(6, "name", feature->name),inspect);
+ fputs (xmlprint(6, "name", gst_plugin_feature_get_name (feature)),inspect);
fputs (xmlprint(6, "longname", gst_element_factory_get_longname (factory)),inspect);
fputs (xmlprint(6, "class", gst_element_factory_get_klass (factory)),inspect);
fputs (xmlprint(6, "description", gst_element_factory_get_description (factory)),inspect);