comparison src/bar_gps.c @ 1708:fc147a2d8aaf

do not process sidecar files in bar_gps patch by Colin Clark
author nadvornik
date Tue, 28 Jul 2009 22:14:26 +0000
parents 1867687f2fcb
children b52deba688e9
comparison
equal deleted inserted replaced
1707:a15dc91173b4 1708:fc147a2d8aaf
225 work = pgd->selection_list; 225 work = pgd->selection_list;
226 while (work) 226 while (work)
227 { 227 {
228 fd = work->data; 228 fd = work->data;
229 pgd->selection_list = g_list_remove(pgd->selection_list, work->data); 229 pgd->selection_list = g_list_remove(pgd->selection_list, work->data);
230 if (fd != NULL) 230 /* If the file has a parent, it must be a sidecar file. Do not process sidecar files
231 */
232 if (fd != NULL && fd->parent == NULL)
231 { 233 {
232 latitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLatitude", 1000); 234 latitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLatitude", 1000);
233 longitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLongitude", 1000); 235 longitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLongitude", 1000);
234 236
235 if ((latitude != 1000) && (longitude != 1000)) 237 if ((latitude != 1000) && (longitude != 1000))