gst/gstcaps.c: Fix proper check for simple caps.
authorWim Taymans <wim.taymans@gmail.com>
Sun, 12 Aug 2007 16:38:40 +0000 (16:38 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 12 Aug 2007 16:38:40 +0000 (16:38 +0000)
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_set_simple_valist),
(gst_caps_intersect):
Fix proper check for simple caps.

ChangeLog
gst/gstcaps.c

index cb91b72..b2ae06c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 740bed4..65cf1cd 100644 (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);