gstdoc-scangobj: use gst_registry_get
authorThomas Vander Stichele <thomas (at) apestaart (dot) org>
Wed, 25 Jan 2012 11:57:22 +0000 (12:57 +0100)
committerThomas Vander Stichele <thomas (at) apestaart (dot) org>
Wed, 25 Jan 2012 12:01:21 +0000 (13:01 +0100)
gstdoc-scangobj

index f936973..b0699c7 100755 (executable)
@@ -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>
@@ -218,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 ("");
 
@@ -269,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 */