From: Ramon G. F. <ra...@pd...> - 2004-02-07 15:44:50
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: ramon Date: Sat Feb 07 2004 05:34:39 PST Log message: fixed compilation warnings of comparison between signed and unsigned Modified files: gst : gstcaps.c gstcaps.h Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstcaps.c.diff?r1=1.91&r2=1.92 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstcaps.h.diff?r1=1.66&r2=1.67 ====Begin Diffs==== Index: gstcaps.c =================================================================== RCS file: /cvs/gstreamer/gstreamer/gst/gstcaps.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- gstcaps.c 5 Feb 2004 13:51:26 -0000 1.91 +++ gstcaps.c 7 Feb 2004 13:34:27 -0000 1.92 @@ -232,7 +232,7 @@ { GstCaps *newcaps; GstStructure *structure; - int i; + unsigned int i; g_return_val_if_fail(caps != NULL, NULL); @@ -259,7 +259,7 @@ void gst_caps_free (GstCaps *caps) { GstStructure *structure; - int i; + unsigned int i; g_return_if_fail(caps != NULL); @@ -314,7 +314,7 @@ void gst_caps_append (GstCaps *caps1, GstCaps *caps2) { GstStructure *structure; - int i; + unsigned int i; g_return_if_fail (caps1 != NULL); g_return_if_fail (caps2 != NULL); @@ -397,7 +397,7 @@ * * Returns: a pointer to the #GstStructure corresponding to @index */ -GstStructure *gst_caps_get_structure (const GstCaps *caps, int index) +GstStructure *gst_caps_get_structure (const GstCaps *caps, unsigned int index) { g_return_val_if_fail (caps != NULL, NULL); g_return_val_if_fail (index >= 0, NULL); @@ -637,7 +637,7 @@ _gst_caps_cap_is_always_compatible (const GstStructure *struct1, const GstCaps *caps2) { - int i; + unsigned int i; for(i=0;i<caps2->structs->len;i++){ GstStructure *struct2 = gst_caps_get_structure (caps2, i); @@ -660,7 +660,7 @@ gboolean gst_caps_is_always_compatible (const GstCaps *caps1, const GstCaps *caps2) { - int i; + unsigned int i; g_return_val_if_fail (caps1 != NULL, FALSE); g_return_val_if_fail (caps2 != NULL, FALSE); @@ -794,7 +794,7 @@ */ GstCaps *gst_caps_intersect (const GstCaps *caps1, const GstCaps *caps2) { - int i,j; + unsigned int i,j; GstStructure *struct1; GstStructure *struct2; GstCaps *dest; @@ -868,7 +868,7 @@ { NormalizeForeach *nf = (NormalizeForeach *) ptr; GValue val = { 0 }; - int i; + unsigned int i; if (G_VALUE_TYPE (value) == GST_TYPE_LIST) { for (i=1; i<gst_value_list_get_size (value); i++) { @@ -902,7 +902,7 @@ { NormalizeForeach nf; GstCaps *newcaps; - int i; + unsigned int i; g_return_val_if_fail(caps != NULL, NULL); @@ -1032,7 +1032,7 @@ */ gchar *gst_caps_to_string (const GstCaps *caps) { - int i; + unsigned int i; GstStructure *structure; GString *s; char *sstr; Index: gstcaps.h =================================================================== RCS file: /cvs/gstreamer/gstreamer/gst/gstcaps.h,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -r1.66 -r1.67 --- gstcaps.h 5 Feb 2004 23:46:12 -0000 1.66 +++ gstcaps.h 7 Feb 2004 13:34:27 -0000 1.67 @@ -83,7 +83,7 @@ GstCaps *gst_caps_split_one (GstCaps *caps); int gst_caps_get_size (const GstCaps *caps); #define gst_caps_is_simple(caps) (gst_caps_get_size(caps) == 1) -GstStructure *gst_caps_get_structure (const GstCaps *caps, int index); +GstStructure *gst_caps_get_structure (const GstCaps *caps, unsigned int index); #ifndef GST_DISABLE_DEPRECATED GstCaps *gst_caps_copy_1 (const GstCaps *caps); #endif |