+2005-12-12 Tim-Philipp Müller <tim at centricular dot net>
+
+ * tests/examples/typefind/typefind.c: (type_found):
+ * tests/examples/xml/runxml.c: (xml_loaded):
+ More gcc4 fixes and a mem leak fix.
+
2005-12-12 Stefan Kost <ensonic@users.sf.net>
* tests/examples/xml/createxml.c: (object_saved):
xmlDocPtr doc;
xmlNodePtr parent;
- doc = xmlNewDoc ("1.0");
- doc->xmlRootNode = xmlNewDocNode (doc, NULL, "Capabilities", NULL);
+ doc = xmlNewDoc ((xmlChar *) "1.0");
+ doc->xmlRootNode = xmlNewDocNode (doc, NULL, (xmlChar *) "Capabilities",
+ NULL);
- parent = xmlNewChild (doc->xmlRootNode, NULL, "Caps1", NULL);
+ parent = xmlNewChild (doc->xmlRootNode, NULL, (xmlChar *) "Caps1", NULL);
/* FIXME */
//gst_caps_save_thyself (caps, parent);
xmlNodePtr children = self->xmlChildrenNode;
while (children) {
- if (!strcmp (children->name, (xmlChar *) "comment")) {
+ if (!strcmp ((const char *) children->name, "comment")) {
xmlNodePtr nodes = children->xmlChildrenNode;
while (nodes) {
- if (!strcmp (nodes->name, (xmlChar *) "text")) {
+ if (!strcmp ((const char *) nodes->name, "text")) {
gchar *name = g_strdup ((gchar *) xmlNodeGetContent (nodes));
+ gchar *obj_name = gst_object_get_name (object);
- g_print ("object %s loaded with comment '%s'\n",
- gst_object_get_name (object), name);
+ g_print ("object %s loaded with comment '%s'\n", obj_name, name);
+
+ g_free (obj_name);
+ g_free (name);
}
nodes = nodes->next;
}