mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
tests/examples/xml/createxml.c: gcc 4 fixes
Original commit message from CVS: * tests/examples/xml/createxml.c: (object_saved): gcc 4 fixes
This commit is contained in:
parent
a9cf316eb8
commit
43dfc2dbb6
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-12-12 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* tests/examples/xml/createxml.c: (object_saved):
|
||||||
|
gcc 4 fixes
|
||||||
|
|
||||||
2005-12-12 Stefan Kost <ensonic@users.sf.net>
|
2005-12-12 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* tests/Makefile.am:
|
* tests/Makefile.am:
|
||||||
|
|
|
@ -11,16 +11,17 @@ object_saved (GstObject * object, xmlNodePtr parent, gpointer data)
|
||||||
|
|
||||||
/* first see if the namespace is already known */
|
/* first see if the namespace is already known */
|
||||||
ns = xmlSearchNsByHref (parent->doc, parent,
|
ns = xmlSearchNsByHref (parent->doc, parent,
|
||||||
"http://gstreamer.net/gst-test/1.0/");
|
(xmlChar *) "http://gstreamer.net/gst-test/1.0/");
|
||||||
if (ns == NULL) {
|
if (ns == NULL) {
|
||||||
xmlNodePtr root = xmlDocGetRootElement (parent->doc);
|
xmlNodePtr root = xmlDocGetRootElement (parent->doc);
|
||||||
|
|
||||||
/* add namespace to root node */
|
/* add namespace to root node */
|
||||||
ns = xmlNewNs (root, "http://gstreamer.net/gst-test/1.0/", "test");
|
ns = xmlNewNs (root, (xmlChar *) "http://gstreamer.net/gst-test/1.0/",
|
||||||
|
(xmlChar *) "test");
|
||||||
}
|
}
|
||||||
child = xmlNewChild (parent, ns, "comment", NULL);
|
child = xmlNewChild (parent, ns, (xmlChar *) "comment", NULL);
|
||||||
|
|
||||||
xmlNewChild (child, NULL, "text", (gchar *) data);
|
xmlNewChild (child, NULL, (xmlChar *) "text", (gchar *) data);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue