add debugging fix comment blocks fix some -libs doc errors

Original commit message from CVS:
add debugging
fix comment blocks
fix some -libs doc errors
This commit is contained in:
Thomas Vander Stichele 2004-03-15 15:16:04 +00:00
parent ecd88e381d
commit 98ff5bbb2f
6 changed files with 35 additions and 22 deletions

View file

@ -1,3 +1,13 @@
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/libs/gstreamer-libs-sections.txt:
remove </SUBSECTION>
* gst/gstplugin.c:
* gst/gstregistry.c: (gst_registry_add_plugin):
* gst/registries/gstxmlregistry.c: (gst_xml_registry_get_type),
(gst_xml_registry_open_func), (gst_xml_registry_close_func):
add debugging and fix some comment blocks
2004-03-15 Johan Dahlin <johan@gnome.org>
* *.h: Revert indent changes.

View file

@ -2,19 +2,20 @@
GstXML
<!-- ##### SECTION Short_Description ##### -->
Convert Elements into an XML presentation.
<!-- ##### SECTION Long_Description ##### -->
<para>
All GstElements can be serialized to an XML presentation and subsequently loaded back.
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### FUNCTION gst_xml_new ##### -->
<para>

View file

@ -165,11 +165,9 @@ gst_dpman_set_mode
gst_dpman_set_parent
gst_dpman_get_manager
gst_dpman_bypass_dparam
</SUBSECTION>
<SUBSECTION Dynamic Parameters>
gst_dparam_new
gst_dparam_attach
gst_dparam_detach
gst_dparam_do_update_default
</SUBSECTION>
</SECTION>

View file

@ -36,11 +36,7 @@
#include "gstfilter.h"
#ifndef GST_DISABLE_GST_DEBUG
#define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
#else
#define GST_CAT_DEFAULT 0
#endif
static GModule *main_module = NULL;
static GList *_gst_plugin_static = NULL;
@ -624,7 +620,8 @@ typedef struct
gboolean first;
gpointer user_data;
GList *result;
} FeatureFilterData;
}
FeatureFilterData;
static gboolean
_feature_filter (GstPlugin * plugin, gpointer user_data)

View file

@ -67,6 +67,7 @@ gst_registry_get_type (void)
(GInstanceInitFunc) gst_registry_init,
NULL
};
registry_type = g_type_register_static (G_TYPE_OBJECT, "GstRegistry",
&registry_info, G_TYPE_FLAG_ABSTRACT);
}
@ -268,8 +269,7 @@ gst_registry_clear_paths (GstRegistry * registry)
* @registry: the registry to add the plugin to
* @plugin: the plugin to add
*
* Add the plugin to the registry. The plugin-added signal
* will be emitted.
* Add the plugin to the registry. The plugin-added signal will be emitted.
*
* Returns: TRUE on success.
*/
@ -281,6 +281,7 @@ gst_registry_add_plugin (GstRegistry * registry, GstPlugin * plugin)
plugin->manager = registry;
registry->plugins = g_list_prepend (registry->plugins, plugin);
GST_DEBUG ("emitting plugin-added for filename %s", plugin->filename);
g_signal_emit (G_OBJECT (registry), gst_registry_signals[PLUGIN_ADDED], 0,
plugin);

View file

@ -476,6 +476,7 @@ gst_xml_registry_open_func (GstXMLRegistry * registry, GstXMLRegistryMode mode)
gst_registry = GST_REGISTRY (registry);
paths = gst_registry->paths;
GST_CAT_DEBUG (GST_CAT_GST_INIT, "opening registry %s", registry->location);
g_return_val_if_fail (registry->open == FALSE, FALSE);
@ -515,16 +516,20 @@ gst_xml_registry_open_func (GstXMLRegistry * registry, GstXMLRegistryMode mode)
return FALSE;
}
} else {
GST_CAT_INFO (GST_CAT_PLUGIN_LOADING,
GST_CAT_INFO (GST_CAT_GST_INIT,
"Can't write to this registry and it's out of date, ignoring it");
return FALSE;
}
}
GST_CAT_DEBUG (GST_CAT_GST_INIT, "opening registry %s for reading",
registry->location);
registry->regfile = fopen (registry->location, "r");
} else if (mode == GST_XML_REGISTRY_WRITE) {
g_return_val_if_fail (gst_registry->flags & GST_REGISTRY_WRITABLE, FALSE);
GST_CAT_DEBUG (GST_CAT_GST_INIT, "opening registry %s for writing",
registry->location);
registry->regfile = fopen (registry->location, "w");
}
@ -562,6 +567,7 @@ gst_xml_registry_save_func (GstXMLRegistry * registry, gchar * format, ...)
static gboolean
gst_xml_registry_close_func (GstXMLRegistry * registry)
{
GST_CAT_DEBUG (GST_CAT_GST_INIT, "closing registry %s", registry->location);
fclose (registry->regfile);
registry->open = FALSE;