gst/gstcaps.c: Fix a bad bug with a simple fix. Because of unsigned ints, caps inters...
authorJulien Moutte <julien@moutte.net>
Sun, 16 Oct 2005 09:56:33 +0000 (09:56 +0000)
committerJulien Moutte <julien@moutte.net>
Sun, 16 Oct 2005 09:56:33 +0000 (09:56 +0000)
Original commit message from CVS:
2005-10-16  Julien MOUTTE  <julien@moutte.net>

* gst/gstcaps.c: (gst_caps_intersect): Fix a bad bug with a
simple
fix. Because of unsigned ints, caps intersection was going nuts
and
trying to access structures with G_MAXUINT index. That fixes
videotestsrc ! ffmpegcolorspace ! fakesink
* gst/gstpad.c: (gst_pad_link_check_compatible_unlocked): logs
consistency.

ChangeLog
gst/gstcaps.c
gst/gstpad.c

index e070b30..24f4720 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-10-16  Julien MOUTTE  <julien@moutte.net>
+
+       * gst/gstcaps.c: (gst_caps_intersect): Fix a bad bug with a simple
+       fix. Because of unsigned ints, caps intersection was going nuts and
+       trying to access structures with G_MAXUINT index. That fixes
+       videotestsrc ! ffmpegcolorspace ! fakesink
+       * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked): logs
+       consistency.
+
 2005-10-16  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * configure.ac:
index f0fc00b..59222e7 100644 (file)
@@ -955,7 +955,7 @@ gst_caps_structure_union (const GstStructure * struct1,
 GstCaps *
 gst_caps_intersect (const GstCaps * caps1, const GstCaps * caps2)
 {
-  guint i, j, k;
+  gint i, j, k;
   GstStructure *struct1;
   GstStructure *struct2;
   GstCaps *dest;
index 202ded0..2b55797 100644 (file)
@@ -1480,7 +1480,7 @@ gst_pad_link_check_compatible_unlocked (GstPad * src, GstPad * sink)
 
   srccaps = gst_pad_get_caps_unlocked (src);
   sinkcaps = gst_pad_get_caps_unlocked (sink);
-  GST_CAT_DEBUG (GST_CAT_CAPS, " src caps %" GST_PTR_FORMAT, srccaps);
+  GST_CAT_DEBUG (GST_CAT_CAPS, "src caps %" GST_PTR_FORMAT, srccaps);
   GST_CAT_DEBUG (GST_CAT_CAPS, "sink caps %" GST_PTR_FORMAT, sinkcaps);
 
   /* if we have caps on both pads we can check the intersection */