Lines 124-136
Link Here
|
124 |
exif_content_callback (ExifContent *content, gpointer data) |
124 |
exif_content_callback (ExifContent *content, gpointer data) |
125 |
{ |
125 |
{ |
126 |
struct ExifAttribute *attribute; |
126 |
struct ExifAttribute *attribute; |
|
|
127 |
char tagdata[1024]; |
127 |
|
128 |
|
128 |
attribute = (struct ExifAttribute *)data; |
129 |
attribute = (struct ExifAttribute *)data; |
129 |
if (attribute->found) { |
130 |
if (attribute->found) { |
130 |
return; |
131 |
return; |
131 |
} |
132 |
} |
132 |
|
133 |
|
133 |
attribute->value = g_strdup (exif_content_get_value (content, attribute->tag)); |
134 |
attribute->value = g_strdup (exif_content_get_value (content, attribute->tag, tagdata, sizeof(tagdata))); |
134 |
if (attribute->value != NULL) { |
135 |
if (attribute->value != NULL) { |
135 |
attribute->found = TRUE; |
136 |
attribute->found = TRUE; |
136 |
} |
137 |
} |