mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
102f9f7fa7
commit
6a99b71662
2 changed files with 11 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* gst/gstelement.c: (gst_element_get_compatible_pad_template),
|
||||
|
|
|
@ -1294,8 +1294,8 @@ gst_caps_do_simplify (GstCaps * caps)
|
|||
xmlNodePtr
|
||||
gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
|
||||
{
|
||||
|
||||
return 0;
|
||||
xmlNewChild (parent, NULL, "caps", gst_caps_to_string (caps));
|
||||
return parent;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1309,6 +1309,9 @@ gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
|
|||
GstCaps *
|
||||
gst_caps_load_thyself (xmlNodePtr parent)
|
||||
{
|
||||
if (strcmp ("caps", parent->name) == 0) {
|
||||
return gst_caps_from_string (xmlNodeGetContent (parent));
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue