gst/gstcaps.c: Fix guint j diving under 0

Original commit message from CVS:

* gst/gstcaps.c: (gst_caps_intersect):
Fix guint j diving under 0
This commit is contained in:
Thomas Vander Stichele 2005-10-16 10:58:41 +00:00
parent 593932d3ed
commit d9ffe247f6
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-10-16 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstcaps.c: (gst_caps_intersect):
Fix guint j diving under 0
2005-10-16 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:

View file

@ -1008,6 +1008,8 @@ gst_caps_intersect (const GstCaps * caps1, const GstCaps * caps2)
gst_caps_append_structure (dest, istruct);
/* move down left */
k++;
if (j == 0)
break; /* we use a guint for j */
j--;
}
}