diff src/exif-common.c @ 212:c7021159079d

differentiate among normal image, raw image and metadata removed raw extension lists on various places and fixed most of the Exiv2 warnings todo: configuration and a special icons for unreadable raw or metadata
author nadvornik
date Sun, 30 Mar 2008 11:47:14 +0000
parents d662d680250d
children 77f1bcc6c161
line wrap: on
line diff
--- a/src/exif-common.c	Sun Mar 30 07:14:37 2008 +0000
+++ b/src/exif-common.c	Sun Mar 30 11:47:14 2008 +0000
@@ -336,14 +336,12 @@
 
 	work = fd->parent ? fd->parent->sidecar_files : fd->sidecar_files;
 
-	if (strcasecmp(fd->extension, ".cr2") == 0 || // FIXME: list of formats that can have xmp sidecar, make it configurable
-	    strcasecmp(fd->extension, ".nef") == 0)
+	if (filter_file_class(fd->extension, FORMAT_CLASS_RAWIMAGE))
 		{
 		while(work)
 			{
 			FileData *sfd = work->data;
 			work = work->next;
-			printf("sfd %s\n", sfd->path);
 			if (strcasecmp(sfd->extension, ".xmp") == 0)
 				{
 				sidecar_path = sfd->path;