mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
exiftag: Compare with G_MAXUINT16 instead of -1
Fixes a compiler warning on the OS X buildbot.
This commit is contained in:
parent
61e11b0fc4
commit
53f8149c90
1 changed files with 2 additions and 2 deletions
|
@ -540,7 +540,7 @@ gst_exif_tag_rewrite_offsets (GstByteWriter * writer, gint byte_order,
|
||||||
{
|
{
|
||||||
GstByteReader *reader;
|
GstByteReader *reader;
|
||||||
gint i;
|
gint i;
|
||||||
guint16 aux = -1;
|
guint16 aux = G_MAXUINT16;
|
||||||
|
|
||||||
GST_LOG ("Rewriting tag entries offsets");
|
GST_LOG ("Rewriting tag entries offsets");
|
||||||
|
|
||||||
|
@ -552,7 +552,7 @@ gst_exif_tag_rewrite_offsets (GstByteWriter * writer, gint byte_order,
|
||||||
} else {
|
} else {
|
||||||
gst_byte_reader_get_uint16_be (reader, &aux);
|
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");
|
GST_WARNING ("Failed to read number of tags, won't rewrite offsets");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue