2005-07-24 21:05:46 +00:00
|
|
|
#include "tools.h"
|
2003-08-19 08:11:58 +00:00
|
|
|
#include <locale.h>
|
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
GST_DEBUG_CATEGORY_STATIC (debug_compprep);
|
2003-06-29 14:05:49 +00:00
|
|
|
#define GST_CAT_DEFAULT debug_compprep
|
2004-06-12 10:14:40 +00:00
|
|
|
#define GST_COMPREG_FILE (GST_CACHE_DIR "/compreg.xml")
|
|
|
|
|
2004-06-12 15:27:59 +00:00
|
|
|
#ifdef HAVE_LIBXML2
|
|
|
|
#if LIBXML_VERSION >= 20600
|
2004-06-12 10:14:40 +00:00
|
|
|
void
|
|
|
|
handle_xmlerror (void *userData, xmlErrorPtr error)
|
|
|
|
{
|
|
|
|
g_print ("Error writing the completion registry: %s, %s\n", GST_COMPREG_FILE,
|
|
|
|
error->message);
|
|
|
|
}
|
2004-06-12 15:27:59 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
int
|
|
|
|
main (int argc, char *argv[])
|
|
|
|
{
|
2001-05-25 21:00:07 +00:00
|
|
|
xmlDocPtr doc;
|
|
|
|
xmlNodePtr factorynode, padnode, argnode, optionnode;
|
2002-09-12 20:52:03 +00:00
|
|
|
GList *plugins, *features, *padtemplates;
|
|
|
|
const GList *pads;
|
2001-05-25 21:00:07 +00:00
|
|
|
GstElement *element;
|
|
|
|
GstPad *pad;
|
|
|
|
GstPadTemplate *padtemplate;
|
2001-06-25 01:20:11 +00:00
|
|
|
GParamSpec **property_specs;
|
2004-03-13 15:27:01 +00:00
|
|
|
guint num_properties, i;
|
2005-07-24 21:05:46 +00:00
|
|
|
struct poptOption options[] = {
|
|
|
|
GST_TOOLS_POPT_VERSION,
|
|
|
|
POPT_TABLEEND
|
|
|
|
};
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2003-08-19 08:11:58 +00:00
|
|
|
setlocale (LC_ALL, "");
|
|
|
|
|
2005-07-24 21:05:46 +00:00
|
|
|
gst_init_with_popt_table (&argc, &argv, options);
|
|
|
|
gst_tools_print_version ("gst-compprep-0.8");
|
2004-03-13 15:27:01 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (debug_compprep, "compprep", GST_DEBUG_BOLD,
|
|
|
|
"gst-compprep application");
|
2001-05-25 21:00:07 +00:00
|
|
|
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
doc = xmlNewDoc ((guchar *) "1.0");
|
|
|
|
doc->xmlRootNode =
|
|
|
|
xmlNewDocNode (doc, NULL, (guchar *) "GST-CompletionRegistry", NULL);
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
plugins = g_list_copy (gst_registry_pool_plugin_list ());
|
2001-05-25 21:00:07 +00:00
|
|
|
while (plugins) {
|
2001-08-21 20:16:48 +00:00
|
|
|
GstPlugin *plugin;
|
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
plugin = (GstPlugin *) (plugins->data);
|
2001-05-25 21:00:07 +00:00
|
|
|
plugins = g_list_next (plugins);
|
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
features = g_list_copy (gst_plugin_get_feature_list (plugin));
|
2001-08-21 20:16:48 +00:00
|
|
|
while (features) {
|
|
|
|
GstPluginFeature *feature;
|
|
|
|
GstElementFactory *factory;
|
|
|
|
|
|
|
|
feature = GST_PLUGIN_FEATURE (features->data);
|
|
|
|
features = g_list_next (features);
|
|
|
|
|
2002-04-11 20:35:18 +00:00
|
|
|
if (!GST_IS_ELEMENT_FACTORY (feature))
|
2004-03-15 19:27:17 +00:00
|
|
|
continue;
|
2001-08-21 20:16:48 +00:00
|
|
|
|
2002-04-11 20:35:18 +00:00
|
|
|
factory = GST_ELEMENT_FACTORY (feature);
|
2001-05-25 21:00:07 +00:00
|
|
|
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
factorynode =
|
|
|
|
xmlNewChild (doc->xmlRootNode, NULL, (guchar *) "element", NULL);
|
|
|
|
xmlNewChild (factorynode, NULL, (guchar *) "name",
|
|
|
|
(guchar *) GST_PLUGIN_FEATURE_NAME (factory));
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2004-03-13 15:27:01 +00:00
|
|
|
element = gst_element_factory_create (factory, NULL);
|
|
|
|
GST_DEBUG ("adding factory %s", GST_PLUGIN_FEATURE_NAME (factory));
|
2001-05-25 21:00:07 +00:00
|
|
|
if (element == NULL) {
|
2004-03-15 19:27:17 +00:00
|
|
|
GST_ERROR ("couldn't construct element from factory %s\n",
|
|
|
|
gst_object_get_name (GST_OBJECT (factory)));
|
|
|
|
return 1;
|
2001-05-25 21:00:07 +00:00
|
|
|
}
|
|
|
|
|
2001-12-14 20:56:51 +00:00
|
|
|
/* write out the padtemplates */
|
2001-05-25 21:00:07 +00:00
|
|
|
padtemplates = factory->padtemplates;
|
|
|
|
while (padtemplates) {
|
2004-03-15 19:27:17 +00:00
|
|
|
padtemplate = (GstPadTemplate *) (padtemplates->data);
|
|
|
|
padtemplates = g_list_next (padtemplates);
|
|
|
|
|
|
|
|
if (padtemplate->direction == GST_PAD_SRC)
|
|
|
|
padnode =
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
xmlNewChild (factorynode, NULL, (guchar *) "srcpadtemplate",
|
|
|
|
(guchar *) padtemplate->name_template);
|
2004-03-15 19:27:17 +00:00
|
|
|
else if (padtemplate->direction == GST_PAD_SINK)
|
|
|
|
padnode =
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
xmlNewChild (factorynode, NULL, (guchar *) "sinkpadtemplate",
|
|
|
|
(guchar *) padtemplate->name_template);
|
2001-05-25 21:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pads = gst_element_get_pad_list (element);
|
|
|
|
while (pads) {
|
2004-03-15 19:27:17 +00:00
|
|
|
pad = (GstPad *) (pads->data);
|
|
|
|
pads = g_list_next (pads);
|
|
|
|
|
|
|
|
if (GST_PAD_DIRECTION (pad) == GST_PAD_SRC)
|
|
|
|
padnode =
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
xmlNewChild (factorynode, NULL, (guchar *) "srcpad",
|
|
|
|
(guchar *) GST_PAD_NAME (pad));
|
2004-03-15 19:27:17 +00:00
|
|
|
else if (GST_PAD_DIRECTION (pad) == GST_PAD_SINK)
|
|
|
|
padnode =
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
xmlNewChild (factorynode, NULL, (guchar *) "sinkpad",
|
|
|
|
(guchar *) GST_PAD_NAME (pad));
|
2001-05-25 21:00:07 +00:00
|
|
|
}
|
|
|
|
|
2001-12-14 20:56:51 +00:00
|
|
|
/* write out the args */
|
2004-03-13 15:27:01 +00:00
|
|
|
property_specs =
|
2004-03-15 19:27:17 +00:00
|
|
|
g_object_class_list_properties (G_OBJECT_GET_CLASS (element),
|
|
|
|
&num_properties);
|
2004-03-13 15:27:01 +00:00
|
|
|
for (i = 0; i < num_properties; i++) {
|
2004-03-15 19:27:17 +00:00
|
|
|
GParamSpec *param = property_specs[i];
|
|
|
|
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
argnode =
|
|
|
|
xmlNewChild (factorynode, NULL, (guchar *) "argument",
|
|
|
|
(guchar *) param->name);
|
2004-03-15 19:27:17 +00:00
|
|
|
if (param->value_type == GST_TYPE_URI) {
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
xmlNewChild (argnode, NULL, (guchar *) "filename", NULL);
|
2004-03-15 19:27:17 +00:00
|
|
|
} else if (G_IS_PARAM_SPEC_ENUM (param) == G_TYPE_ENUM) {
|
|
|
|
GEnumValue *values;
|
|
|
|
gint j;
|
|
|
|
|
|
|
|
values = G_ENUM_CLASS (g_type_class_ref (param->value_type))->values;
|
|
|
|
for (j = 0; values[j].value_name; j++) {
|
|
|
|
gchar *value = g_strdup_printf ("%d", values[j].value);
|
|
|
|
|
More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
|
|
|
optionnode =
|
|
|
|
xmlNewChild (argnode, NULL, (guchar *) "option",
|
|
|
|
(guchar *) value);
|
|
|
|
xmlNewChild (optionnode, NULL, (guchar *) "value_nick",
|
|
|
|
(guchar *) values[j].value_nick);
|
2004-03-15 19:27:17 +00:00
|
|
|
g_free (value);
|
|
|
|
}
|
|
|
|
}
|
2001-05-25 21:00:07 +00:00
|
|
|
}
|
2005-08-24 13:06:12 +00:00
|
|
|
g_free (property_specs);
|
2001-05-25 21:00:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-12-26 06:58:25 +00:00
|
|
|
#ifdef HAVE_LIBXML2
|
2004-06-12 15:27:59 +00:00
|
|
|
#if LIBXML_VERSION >= 20600
|
2004-06-12 10:14:40 +00:00
|
|
|
xmlSetStructuredErrorFunc (NULL, handle_xmlerror);
|
2004-06-12 15:27:59 +00:00
|
|
|
#endif
|
2004-06-12 10:14:40 +00:00
|
|
|
xmlSaveFormatFile (GST_COMPREG_FILE, doc, 1);
|
2001-12-26 06:58:25 +00:00
|
|
|
#else
|
2004-06-12 10:14:40 +00:00
|
|
|
xmlSaveFile (GST_COMPREG_FILE, doc);
|
2001-12-26 06:58:25 +00:00
|
|
|
#endif
|
2001-05-25 21:00:07 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|