summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2012-01-18 07:00:33 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-18 07:00:33 -0800
commitf485c62af532ad43c72268d7a5b3a399b1ef51cb (patch)
treec3f9a847b75151ab8d646b6ce64c3b575ac9a3a0 /main.c
parentf4fd06d84d0d4ffe00b448f5c3320d63256b5035 (diff)
downloadjhead-f485c62af532ad43c72268d7a5b3a399b1ef51cb.tar.gz
Revert "Use values from attributes for DateTime tag."
This reverts commit f4fd06d84d0d4ffe00b448f5c3320d63256b5035
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.c b/main.c
index 2cbc4a5..b67724f 100644
--- a/main.c
+++ b/main.c
@@ -230,7 +230,6 @@ static void saveAttributes(JNIEnv *env, jobject jobj, jstring jfilename, jstring
int i;
char tag[100];
- int hasDateTimeTag = FALSE;
int gpsTagCount = 0;
int exifTagCount = 0;
@@ -264,10 +263,6 @@ static void saveAttributes(JNIEnv *env, jobject jobj, jstring jfilename, jstring
}
attrPtr = tagEnd + 1;
- if (exifElementTable[i].Tag == 0x0132) { // 0x0132 is the DateTime tag number.
- hasDateTimeTag = TRUE;
- }
-
// next get the length of the attribute value
int valueLen = atoi(attrPtr);
attrPtr = strchr(attrPtr, ' ') + 1;
@@ -320,7 +315,7 @@ static void saveAttributes(JNIEnv *env, jobject jobj, jstring jfilename, jstring
}
}
- create_EXIF(exifElementTable, exifTagCount, gpsTagCount, hasDateTimeTag);
+ create_EXIF(exifElementTable, exifTagCount, gpsTagCount);
if (thumbnailData) {
copyThumbnailData(thumbnailData, thumbnailLength);