exiftag: Compare with G_MAXUINT16 instead of -1
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 10 Aug 2010 09:52:30 +0000 (11:52 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 10 Aug 2010 09:53:19 +0000 (11:53 +0200)
Fixes a compiler warning on the OS X buildbot.

gst-libs/gst/tag/gstexiftag.c

index 4d01435..f6198d6 100644 (file)
@@ -540,7 +540,7 @@ gst_exif_tag_rewrite_offsets (GstByteWriter * writer, gint byte_order,
 {
   GstByteReader *reader;
   gint i;
-  guint16 aux = -1;
+  guint16 aux = G_MAXUINT16;
 
   GST_LOG ("Rewriting tag entries offsets");
 
@@ -552,7 +552,7 @@ gst_exif_tag_rewrite_offsets (GstByteWriter * writer, gint byte_order,
     } else {
       gst_byte_reader_get_uint16_be (reader, &aux);
     }
-    if (aux == -1) {
+    if (aux == G_MAXUINT16) {
       GST_WARNING ("Failed to read number of tags, won't rewrite offsets");
       return;
     }