mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
Some more fixes for libxml.
Original commit message from CVS: Some more fixes for libxml. Also, some code formatting changes in esdsink, some further fixes to vumeter, and some work on synaesthesia to make it closer to working (it doesn't fully work yet, though. :( )
This commit is contained in:
parent
41ebd85275
commit
82769bcae9
4 changed files with 16 additions and 16 deletions
12
tests/caps.c
12
tests/caps.c
|
@ -66,28 +66,28 @@ int main(int argc,char *argv[])
|
||||||
xmlNodePtr parent;
|
xmlNodePtr parent;
|
||||||
|
|
||||||
doc = xmlNewDoc ("1.0");
|
doc = xmlNewDoc ("1.0");
|
||||||
doc->root = xmlNewDocNode (doc, NULL, "Capabilities", NULL);
|
doc->xmlRootNode = xmlNewDocNode (doc, NULL, "Capabilities", NULL);
|
||||||
|
|
||||||
_gst_type_initialize ();
|
_gst_type_initialize ();
|
||||||
|
|
||||||
sinkcaps = gst_caps_register (&mpeg2dec_sink_caps);
|
sinkcaps = gst_caps_register (&mpeg2dec_sink_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Capabilities1", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities1", NULL);
|
||||||
gst_caps_save_thyself (sinkcaps, parent);
|
gst_caps_save_thyself (sinkcaps, parent);
|
||||||
|
|
||||||
rawcaps = gst_caps_register (&mpeg2dec_src_caps);
|
rawcaps = gst_caps_register (&mpeg2dec_src_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Capabilities2", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities2", NULL);
|
||||||
gst_caps_save_thyself (rawcaps, parent);
|
gst_caps_save_thyself (rawcaps, parent);
|
||||||
|
|
||||||
rawcaps2 = gst_caps_register (&raw_sink_caps);
|
rawcaps2 = gst_caps_register (&raw_sink_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Capabilities3", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities3", NULL);
|
||||||
gst_caps_save_thyself (rawcaps2, parent);
|
gst_caps_save_thyself (rawcaps2, parent);
|
||||||
|
|
||||||
mp1parsecaps = gst_caps_register (&mp1parse_src_caps);
|
mp1parsecaps = gst_caps_register (&mp1parse_src_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Capabilities4", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL);
|
||||||
gst_caps_save_thyself (mp1parsecaps, parent);
|
gst_caps_save_thyself (mp1parsecaps, parent);
|
||||||
|
|
||||||
rawcaps3 = gst_caps_register (&raw2_sink_caps);
|
rawcaps3 = gst_caps_register (&raw2_sink_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Capabilities5", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities5", NULL);
|
||||||
gst_caps_save_thyself (rawcaps3, parent);
|
gst_caps_save_thyself (rawcaps3, parent);
|
||||||
|
|
||||||
xmlDocDump(stdout, doc);
|
xmlDocDump(stdout, doc);
|
||||||
|
|
|
@ -63,20 +63,20 @@ int main(int argc,char *argv[])
|
||||||
xmlNodePtr parent;
|
xmlNodePtr parent;
|
||||||
|
|
||||||
doc = xmlNewDoc ("1.0");
|
doc = xmlNewDoc ("1.0");
|
||||||
doc->root = xmlNewDocNode (doc, NULL, "Capabilities", NULL);
|
doc->xmlRootNode = xmlNewDocNode (doc, NULL, "Capabilities", NULL);
|
||||||
|
|
||||||
_gst_type_initialize ();
|
_gst_type_initialize ();
|
||||||
|
|
||||||
sinkcaps = gst_caps_register (&mpeg2dec_sink_caps);
|
sinkcaps = gst_caps_register (&mpeg2dec_sink_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Capabilities1", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities1", NULL);
|
||||||
gst_caps_save_thyself (sinkcaps, parent);
|
gst_caps_save_thyself (sinkcaps, parent);
|
||||||
|
|
||||||
rawcaps = gst_caps_register (&mpeg2dec_src_caps);
|
rawcaps = gst_caps_register (&mpeg2dec_src_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Capabilities2", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities2", NULL);
|
||||||
gst_caps_save_thyself (rawcaps, parent);
|
gst_caps_save_thyself (rawcaps, parent);
|
||||||
|
|
||||||
temp = gst_padtemplate_new (&pad_caps);
|
temp = gst_padtemplate_new (&pad_caps);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Padtemplate", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Padtemplate", NULL);
|
||||||
gst_padtemplate_save_thyself (temp, parent);
|
gst_padtemplate_save_thyself (temp, parent);
|
||||||
|
|
||||||
xmlDocDump(stdout, doc);
|
xmlDocDump(stdout, doc);
|
||||||
|
|
|
@ -29,16 +29,16 @@ int main(int argc,char *argv[])
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
doc = xmlNewDoc ("1.0");
|
doc = xmlNewDoc ("1.0");
|
||||||
doc->root = xmlNewDocNode (doc, NULL, "Properties", NULL);
|
doc->xmlRootNode = xmlNewDocNode (doc, NULL, "Properties", NULL);
|
||||||
|
|
||||||
_gst_type_initialize ();
|
_gst_type_initialize ();
|
||||||
|
|
||||||
sinkprops = gst_props_register (mpeg2dec_sink_props);
|
sinkprops = gst_props_register (mpeg2dec_sink_props);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Props1", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Props1", NULL);
|
||||||
gst_props_save_thyself (sinkprops, parent);
|
gst_props_save_thyself (sinkprops, parent);
|
||||||
|
|
||||||
rawprops = gst_props_register (mpeg2dec_src_props);
|
rawprops = gst_props_register (mpeg2dec_src_props);
|
||||||
parent = xmlNewChild (doc->root, NULL, "Props2", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Props2", NULL);
|
||||||
gst_props_save_thyself (rawprops, parent);
|
gst_props_save_thyself (rawprops, parent);
|
||||||
|
|
||||||
i=argc;
|
i=argc;
|
||||||
|
@ -57,7 +57,7 @@ int main(int argc,char *argv[])
|
||||||
NULL));
|
NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
parent = xmlNewChild (doc->root, NULL, "Props3", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "Props3", NULL);
|
||||||
gst_props_save_thyself (testprops, parent);
|
gst_props_save_thyself (testprops, parent);
|
||||||
|
|
||||||
xmlDocDump(stdout, doc);
|
xmlDocDump(stdout, doc);
|
||||||
|
|
|
@ -42,13 +42,13 @@ dump_factory (gchar *name)
|
||||||
xmlDocPtr doc;
|
xmlDocPtr doc;
|
||||||
|
|
||||||
doc = xmlNewDoc ("1.0");
|
doc = xmlNewDoc ("1.0");
|
||||||
doc->root = xmlNewDocNode (doc, NULL, "templates", NULL);
|
doc->xmlRootNode = xmlNewDocNode (doc, NULL, "templates", NULL);
|
||||||
|
|
||||||
while (padtemplates) {
|
while (padtemplates) {
|
||||||
xmlNodePtr parent;
|
xmlNodePtr parent;
|
||||||
GstPadTemplate *template = (GstPadTemplate *) padtemplates->data;
|
GstPadTemplate *template = (GstPadTemplate *) padtemplates->data;
|
||||||
|
|
||||||
parent = xmlNewChild (doc->root, NULL, "template", NULL);
|
parent = xmlNewChild (doc->xmlRootNode, NULL, "template", NULL);
|
||||||
|
|
||||||
gst_padtemplate_save_thyself (template, parent);
|
gst_padtemplate_save_thyself (template, parent);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue