Mercurial > geeqie
diff src/image.c @ 176:695e1ad3b169
simplified exif.h, moved implementation-specific stuff to exif-int.h
author | nadvornik |
---|---|
date | Wed, 13 Feb 2008 13:57:31 +0000 |
parents | 682705e0c0e0 |
children | 0ca3b4c8ffae |
line wrap: on
line diff
--- a/src/image.c Mon Feb 11 15:23:43 2008 +0000 +++ b/src/image.c Wed Feb 13 13:57:31 2008 +0000 @@ -379,16 +379,21 @@ } } } - if (item && item->format == EXIF_FORMAT_UNDEFINED) + + if (item && exif_item_get_format_id(item) == EXIF_FORMAT_UNDEFINED) { + char *data; + guint data_len; if (debug) printf("Found embedded color profile\n"); + + data = exif_item_get_data(item, &data_len); cm = color_man_new_embedded(imd, NULL, - item->data, item->data_len, + data, data_len, screen_type, screen_file, image_post_process_color_cb, imd); } - else + else { cm = color_man_new(imd, NULL, input_type, input_file,