* Add a fallback method for gathering the date/time an image was taken.

This commit is contained in:
Justin Maggard 2009-03-30 07:42:24 +00:00
parent 0a415861e7
commit 3aea5d6f07

View File

@ -351,7 +351,7 @@ GetImageMetadata(const char * path, char * name)
tag = EXIF_TAG_DATE_TIME_ORIGINAL;
e = exif_content_get_entry (ed->ifd[EXIF_IFD_EXIF], tag);
if( e ) {
if( e || (e = exif_content_get_entry(ed->ifd[EXIF_IFD_0], EXIF_TAG_DATE_TIME)) ) {
strncpy(date, exif_entry_get_value(e, b, sizeof(b)), sizeof(date));
if( strlen(date) > 10 )
{