From: Dan F. <dfa...@us...> - 2009-11-20 21:04:44
|
Update of /cvsroot/libexif/exif/exif In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4098/exif Modified Files: main.c Log Message: --no-fixup now honoured during --create-exif to not create default tags Index: main.c =================================================================== RCS file: /cvsroot/libexif/exif/exif/main.c,v retrieving revision 1.77 retrieving revision 1.78 diff -u -p -d -r1.77 -r1.78 --- main.c 27 Oct 2009 06:09:44 -0000 1.77 +++ main.c 20 Nov 2009 21:04:36 -0000 1.78 @@ -379,11 +379,13 @@ main (int argc, const char **argv) ed = exif_data_new (); exif_data_log (ed, log); exif_data_set_data_type(ed, EXIF_DATA_TYPE_COMPRESSED); - /* Add all the mandatory fields */ - exif_data_fix(ed); + if (!no_fixup) { + /* Add all the mandatory fields */ + exif_data_fix(ed); - /* Create a new date tag */ - action_create_value (ed, log, EXIF_TAG_DATE_TIME, EXIF_IFD_0); + /* Create a new date tag */ + action_create_value (ed, log, EXIF_TAG_DATE_TIME, EXIF_IFD_0); + } } else { exif_log (log, -1, "exif", _("'%s' is not " "readable or does not contain EXIF data!"), |