mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
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:
parent
ecd88e381d
commit
98ff5bbb2f
6 changed files with 35 additions and 22 deletions
10
ChangeLog
10
ChangeLog
|
@ -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>
|
2004-03-15 Johan Dahlin <johan@gnome.org>
|
||||||
|
|
||||||
* *.h: Revert indent changes.
|
* *.h: Revert indent changes.
|
||||||
|
|
|
@ -2,19 +2,20 @@
|
||||||
GstXML
|
GstXML
|
||||||
|
|
||||||
<!-- ##### SECTION Short_Description ##### -->
|
<!-- ##### SECTION Short_Description ##### -->
|
||||||
Convert Elements into an XML presentation.
|
|
||||||
|
|
||||||
<!-- ##### SECTION Long_Description ##### -->
|
<!-- ##### SECTION Long_Description ##### -->
|
||||||
<para>
|
<para>
|
||||||
All GstElements can be serialized to an XML presentation and subsequently loaded back.
|
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### SECTION See_Also ##### -->
|
<!-- ##### SECTION See_Also ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gst_xml_new ##### -->
|
<!-- ##### FUNCTION gst_xml_new ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
|
|
@ -165,11 +165,9 @@ gst_dpman_set_mode
|
||||||
gst_dpman_set_parent
|
gst_dpman_set_parent
|
||||||
gst_dpman_get_manager
|
gst_dpman_get_manager
|
||||||
gst_dpman_bypass_dparam
|
gst_dpman_bypass_dparam
|
||||||
</SUBSECTION>
|
|
||||||
<SUBSECTION Dynamic Parameters>
|
<SUBSECTION Dynamic Parameters>
|
||||||
gst_dparam_new
|
gst_dparam_new
|
||||||
gst_dparam_attach
|
gst_dparam_attach
|
||||||
gst_dparam_detach
|
gst_dparam_detach
|
||||||
gst_dparam_do_update_default
|
gst_dparam_do_update_default
|
||||||
</SUBSECTION>
|
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
|
@ -36,11 +36,7 @@
|
||||||
#include "gstfilter.h"
|
#include "gstfilter.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
|
||||||
#define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
|
#define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
|
||||||
#else
|
|
||||||
#define GST_CAT_DEFAULT 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static GModule *main_module = NULL;
|
static GModule *main_module = NULL;
|
||||||
static GList *_gst_plugin_static = NULL;
|
static GList *_gst_plugin_static = NULL;
|
||||||
|
@ -624,7 +620,8 @@ typedef struct
|
||||||
gboolean first;
|
gboolean first;
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
GList *result;
|
GList *result;
|
||||||
} FeatureFilterData;
|
}
|
||||||
|
FeatureFilterData;
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
_feature_filter (GstPlugin * plugin, gpointer user_data)
|
_feature_filter (GstPlugin * plugin, gpointer user_data)
|
||||||
|
|
|
@ -67,6 +67,7 @@ gst_registry_get_type (void)
|
||||||
(GInstanceInitFunc) gst_registry_init,
|
(GInstanceInitFunc) gst_registry_init,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
registry_type = g_type_register_static (G_TYPE_OBJECT, "GstRegistry",
|
registry_type = g_type_register_static (G_TYPE_OBJECT, "GstRegistry",
|
||||||
®istry_info, G_TYPE_FLAG_ABSTRACT);
|
®istry_info, G_TYPE_FLAG_ABSTRACT);
|
||||||
}
|
}
|
||||||
|
@ -268,8 +269,7 @@ gst_registry_clear_paths (GstRegistry * registry)
|
||||||
* @registry: the registry to add the plugin to
|
* @registry: the registry to add the plugin to
|
||||||
* @plugin: the plugin to add
|
* @plugin: the plugin to add
|
||||||
*
|
*
|
||||||
* Add the plugin to the registry. The plugin-added signal
|
* Add the plugin to the registry. The plugin-added signal will be emitted.
|
||||||
* will be emitted.
|
|
||||||
*
|
*
|
||||||
* Returns: TRUE on success.
|
* Returns: TRUE on success.
|
||||||
*/
|
*/
|
||||||
|
@ -281,6 +281,7 @@ gst_registry_add_plugin (GstRegistry * registry, GstPlugin * plugin)
|
||||||
plugin->manager = registry;
|
plugin->manager = registry;
|
||||||
registry->plugins = g_list_prepend (registry->plugins, plugin);
|
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,
|
g_signal_emit (G_OBJECT (registry), gst_registry_signals[PLUGIN_ADDED], 0,
|
||||||
plugin);
|
plugin);
|
||||||
|
|
||||||
|
|
|
@ -476,6 +476,7 @@ gst_xml_registry_open_func (GstXMLRegistry * registry, GstXMLRegistryMode mode)
|
||||||
|
|
||||||
gst_registry = GST_REGISTRY (registry);
|
gst_registry = GST_REGISTRY (registry);
|
||||||
paths = gst_registry->paths;
|
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);
|
g_return_val_if_fail (registry->open == FALSE, FALSE);
|
||||||
|
|
||||||
|
@ -515,16 +516,20 @@ gst_xml_registry_open_func (GstXMLRegistry * registry, GstXMLRegistryMode mode)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} 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");
|
"Can't write to this registry and it's out of date, ignoring it");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_CAT_DEBUG (GST_CAT_GST_INIT, "opening registry %s for reading",
|
||||||
|
registry->location);
|
||||||
registry->regfile = fopen (registry->location, "r");
|
registry->regfile = fopen (registry->location, "r");
|
||||||
} else if (mode == GST_XML_REGISTRY_WRITE) {
|
} else if (mode == GST_XML_REGISTRY_WRITE) {
|
||||||
g_return_val_if_fail (gst_registry->flags & GST_REGISTRY_WRITABLE, FALSE);
|
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");
|
registry->regfile = fopen (registry->location, "w");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -562,6 +567,7 @@ gst_xml_registry_save_func (GstXMLRegistry * registry, gchar * format, ...)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_xml_registry_close_func (GstXMLRegistry * registry)
|
gst_xml_registry_close_func (GstXMLRegistry * registry)
|
||||||
{
|
{
|
||||||
|
GST_CAT_DEBUG (GST_CAT_GST_INIT, "closing registry %s", registry->location);
|
||||||
fclose (registry->regfile);
|
fclose (registry->regfile);
|
||||||
|
|
||||||
registry->open = FALSE;
|
registry->open = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue