gst/gstcaps.c: Fix proper check for simple caps.

Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_set_simple_valist),
(gst_caps_intersect):
Fix proper check for simple caps.
This commit is contained in:
Wim Taymans 2007-08-12 16:38:40 +00:00
parent 2cf1e35694
commit 3fb7bda332
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-08-12 Wim Taymans <wim.taymans@gmail.com>
* gst/gstcaps.c: (gst_caps_set_simple_valist),
(gst_caps_intersect):
Fix proper check for simple caps.
2007-08-10 Stefan Kost <ensonic@users.sf.net>
* docs/gst/Makefile.am:

View file

@ -895,7 +895,7 @@ gst_caps_set_simple_valist (GstCaps * caps, char *field, va_list varargs)
GstStructure *structure;
g_return_if_fail (GST_IS_CAPS (caps));
g_return_if_fail (caps->structs->len != 1);
g_return_if_fail (caps->structs->len == 1);
g_return_if_fail (IS_WRITABLE (caps));
structure = gst_caps_get_structure (caps, 0);