Update of /cvsroot/libexif/exif/exif
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6515/exif
Modified Files:
main.c actions.c
Log Message:
exif/main.c: Allow setting --tag=0 (needed for the GPS IFD)
Index: main.c
===================================================================
RCS file: /cvsroot/libexif/exif/exif/main.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -p -d -r1.68 -r1.69
--- main.c 13 Jan 2009 06:50:48 -0000 1.68
+++ main.c 13 Jan 2009 08:44:31 -0000 1.69
@@ -172,7 +172,7 @@ static unsigned int remove_tag = 0, crea
static unsigned int list_mnote = 0;
static unsigned int show_version = 0;
static const char *ifd_string = NULL, *tag_string = NULL;
-static ExifParams p = {0, EXIF_IFD_COUNT, 0, 0, NULL, NULL, NULL};
+static ExifParams p = {0xffff, EXIF_IFD_COUNT, 0, 0, NULL, NULL, NULL};
LogArg log_arg = {0, 0, 0};
int
@@ -274,7 +274,7 @@ main (int argc, const char **argv)
}
/* Check for all necessary parameters */
- if (!p.tag && (p.set_value || show_description)) {
+ if ((p.tag == 0xffff) && (p.set_value || show_description)) {
exif_log (log, -1, "exif", _("You need to specify a tag!"));
return 1;
}
Index: actions.c
===================================================================
RCS file: /cvsroot/libexif/exif/exif/actions.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -p -d -r1.39 -r1.40
--- actions.c 26 Nov 2008 09:11:03 -0000 1.39
+++ actions.c 13 Jan 2009 08:44:31 -0000 1.40
@@ -201,7 +201,7 @@ show_entry (ExifEntry *entry, unsigned i
/*
* The C() macro can point to a static buffer so these printfs
- * must be done separately.
+ * cannot be combined.
*/
printf (_("EXIF entry '%s' "),
C(exif_tag_get_title_in_ifd (entry->tag, ifd)));
|