Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_save_thyself), (gst_caps_load_thyself):
Actually do something in these functions, like before the big
caps change. (bug #145137)
+2004-07-03 David Schleef <ds@schleef.org>
+
+ * gst/gstcaps.c: (gst_caps_save_thyself), (gst_caps_load_thyself):
+ Actually do something in these functions, like before the big
+ caps change. (bug #145137)
+
2004-07-03 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstelement.c: (gst_element_get_compatible_pad_template),
xmlNodePtr
gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
{
-
- return 0;
+ xmlNewChild (parent, NULL, "caps", gst_caps_to_string (caps));
+ return parent;
}
/**
GstCaps *
gst_caps_load_thyself (xmlNodePtr parent)
{
+ if (strcmp ("caps", parent->name) == 0) {
+ return gst_caps_from_string (xmlNodeGetContent (parent));
+ }
return NULL;
}