g/: fix properly for new API; make update in plugins dir now works

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
parent cd4da6a3
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:
......
......@@ -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
......
......@@ -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));
}
......
......@@ -118,6 +118,7 @@ inspect:
mkdir inspect
inspect-update: inspect
-rm $(INSPECT_REGISTRY)
-rm inspect-build.stamp
make inspect-build.stamp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment