g/: fix properly for new API; make update in plugins dir now works
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 23 Sep 2005 11:52:24 +0000 (11:52 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 23 Sep 2005 11:52:24 +0000 (11:52 +0000)
Original commit message from CVS:

* gst-xmlinspect.py:
* gstdoc-scangobj:
* gtk-doc-plugins.mak:
fix properly for new API; make update in plugins dir now works

ChangeLog
gst-xmlinspect.py
gstdoc-scangobj
gtk-doc-plugins.mak

index c462be6..e9c6316 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst-xmlinspect.py:
+       * gstdoc-scangobj:
+       * gtk-doc-plugins.mak:
+         fix properly for new API; make update in plugins dir now works
+
 2005-09-20  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * gst-xmlinspect.py:
index c05589b..abfb917 100644 (file)
@@ -69,8 +69,11 @@ def output_plugin(plugin, indent=0):
     version = plugin.get_version()
     
     elements = {}
-    #gst.debug('getting features for plugin %s' % plugin.get_name())
-    for feature in plugin.get_feature_list():
+    gst.debug('getting features for plugin %s' % plugin.get_name())
+    registry = gst.registry_get_default()
+    features = registry.get_feature_list_by_plugin(plugin.get_name())
+    gst.debug('plugin %s has %d features' % (plugin.get_name(), len(features)))
+    for feature in features:
         if isinstance(feature, gst.ElementFactory):
             elements[feature.get_name()] = feature
     #gst.debug("got features")
@@ -115,6 +118,8 @@ def main():
     registry = gst.registry_get_default()
     all = registry.get_plugin_list()
     for plugin in all:
+        gst.debug("inspecting plugin %s from source %s" % (
+            plugin.get_name(), plugin.get_source()))
         if plugin.get_source() != source:
             continue
 
index b0fd63d..ac5940c 100755 (executable)
@@ -140,7 +140,7 @@ get_object_types (void)
 
     gint i = 0;
 
-    /* get the list of plugins from the registry */
+    /* get a list of features from plugins in our source module */
     plugins = gst_registry_get_plugin_list (gst_registry_get_default());
 
     while (plugins) {
@@ -162,7 +162,8 @@ get_object_types (void)
       while (features) {
         GstPluginFeature *feature;
         feature = GST_PLUGIN_FEATURE (features->data);
-        if (!gst_plugin_feature_load (feature)) {
+        feature = gst_plugin_feature_load (feature);
+        if (!feature) {
           g_warning ("Could not load plugin feature %s",
                      gst_plugin_feature_get_name (feature));
         }
index d51c9e4..0067538 100644 (file)
@@ -118,6 +118,7 @@ inspect:
        mkdir inspect
 
 inspect-update: inspect
+       -rm $(INSPECT_REGISTRY)
        -rm inspect-build.stamp
        make inspect-build.stamp