exiftag: Compare with G_MAXUINT16 instead of -1

Fixes a compiler warning on the OS X buildbot.
This commit is contained in:
Sebastian Dröge 2010-08-10 11:52:30 +02:00
parent 61e11b0fc4
commit 53f8149c90

View 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;
}