gst/gstcaps.c: Actually do something in these functions, like before the big caps change. (bug #145137)

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)
This commit is contained in:
David Schleef 2004-07-03 23:49:51 +00:00
parent 102f9f7fa7
commit 6a99b71662
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,9 @@
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> 2004-07-03 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstelement.c: (gst_element_get_compatible_pad_template), * gst/gstelement.c: (gst_element_get_compatible_pad_template),

View file

@ -1294,8 +1294,8 @@ gst_caps_do_simplify (GstCaps * caps)
xmlNodePtr xmlNodePtr
gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent) gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
{ {
xmlNewChild (parent, NULL, "caps", gst_caps_to_string (caps));
return 0; return parent;
} }
/** /**
@ -1309,6 +1309,9 @@ gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
GstCaps * GstCaps *
gst_caps_load_thyself (xmlNodePtr parent) gst_caps_load_thyself (xmlNodePtr parent)
{ {
if (strcmp ("caps", parent->name) == 0) {
return gst_caps_from_string (xmlNodeGetContent (parent));
}
return NULL; return NULL;
} }