diff options
Diffstat (limited to 'src/plugins/tiff_extractor.c')
-rw-r--r-- | src/plugins/tiff_extractor.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/tiff_extractor.c b/src/plugins/tiff_extractor.c index b58e732..d944be1 100644 --- a/src/plugins/tiff_extractor.c +++ b/src/plugins/tiff_extractor.c | |||
@@ -30,6 +30,8 @@ addKeyword (EXTRACTOR_MetaDataProcessor proc, | |||
30 | const char *keyword, | 30 | const char *keyword, |
31 | enum EXTRACTOR_MetaType type) | 31 | enum EXTRACTOR_MetaType type) |
32 | { | 32 | { |
33 | if (keyword == NULL) | ||
34 | return 0; | ||
33 | return proc (proc_cls, | 35 | return proc (proc_cls, |
34 | "tiff", | 36 | "tiff", |
35 | type, | 37 | type, |
@@ -188,7 +190,10 @@ EXTRACTOR_tiff_extract (const char *data, | |||
188 | snprintf (tmp, | 190 | snprintf (tmp, |
189 | sizeof(tmp), "%ux%u", | 191 | sizeof(tmp), "%ux%u", |
190 | width, length); | 192 | width, length); |
191 | addKeyword (proc, proc_cls, strdup (tmp), EXTRACTOR_METATYPE_IMAGE_DIMENSIONS); | 193 | addKeyword (proc, |
194 | proc_cls, | ||
195 | tmp, | ||
196 | EXTRACTOR_METATYPE_IMAGE_DIMENSIONS); | ||
192 | } | 197 | } |
193 | break; | 198 | break; |
194 | case TAG_WIDTH: | 199 | case TAG_WIDTH: |
@@ -203,7 +208,9 @@ EXTRACTOR_tiff_extract (const char *data, | |||
203 | sizeof(tmp), | 208 | sizeof(tmp), |
204 | "%ux%u", | 209 | "%ux%u", |
205 | width, length); | 210 | width, length); |
206 | addKeyword (proc, proc_cls, strdup (tmp), EXTRACTOR_METATYPE_IMAGE_DIMENSIONS); | 211 | addKeyword (proc, proc_cls, |
212 | tmp, | ||
213 | EXTRACTOR_METATYPE_IMAGE_DIMENSIONS); | ||
207 | } | 214 | } |
208 | break; | 215 | break; |
209 | case TAG_SOFTWARE: | 216 | case TAG_SOFTWARE: |