* Add a fallback method for gathering the date/time an image was taken.
This commit is contained in:
parent
0a415861e7
commit
3aea5d6f07
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user