summaryrefslogtreecommitdiffstats
path: root/ext/metadata/metadataxmp.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-01-30 19:19:33 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-01-30 19:19:33 +0000
commit65d96c70634b527ef8fc9f0b1669f42b87e788b7 (patch)
tree9975d8e3105265423750ed4ed46f85cafa1a5996 /ext/metadata/metadataxmp.c
parent8473ffb7541e8f5158b81883ab2b9a6c92c53e40 (diff)
downloadgst-plugins-bad-65d96c70634b527ef8fc9f0b1669f42b87e788b7.tar.gz
gst-plugins-bad-65d96c70634b527ef8fc9f0b1669f42b87e788b7.tar.bz2
gst-plugins-bad-65d96c70634b527ef8fc9f0b1669f42b87e788b7.zip
Fix build with exempi >= 1.99.5 and fix the include path for exempi.
Original commit message from CVS: * configure.ac: * ext/metadata/metadataxmp.c: (metadatamux_xmp_for_each_tag_in_list): Fix build with exempi >= 1.99.5 and fix the include path for exempi.
Diffstat (limited to 'ext/metadata/metadataxmp.c')
-rw-r--r--ext/metadata/metadataxmp.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/metadata/metadataxmp.c b/ext/metadata/metadataxmp.c
index 8ea71d0a..6226ba8e 100644
--- a/ext/metadata/metadataxmp.c
+++ b/ext/metadata/metadataxmp.c
@@ -127,7 +127,7 @@ metadatamux_xmp_create_chunk_from_tag_list (guint8 ** buf, guint32 * size,
* includes
*/
-#include <xmp.h>
+#include <exempi/xmp.h>
#include <string.h>
/*
@@ -829,13 +829,21 @@ metadatamux_xmp_for_each_tag_in_list (const GstTagList * list,
NULL, &options)) {
if (XMP_IS_PROP_SIMPLE (options)) {
+#ifdef XMP_1_99_5
+ xmp_set_property (xmp, smap->schema, stagmap->xmp_tag, value, 0);
+#else
xmp_set_property (xmp, smap->schema, stagmap->xmp_tag, value);
+#endif
} else {
xmp_set_array_item (xmp, smap->schema, stagmap->xmp_tag, 1,
value, 0);
}
} else {
+#ifdef XMP_1_99_5
+ xmp_set_property (xmp, smap->schema, stagmap->xmp_tag, value, 0);
+#else
xmp_set_property (xmp, smap->schema, stagmap->xmp_tag, value);
+#endif
}
g_free (value);