From d7646765834b07091ea7ba53a9251a1cbc2811af Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 18 Apr 2011 23:16:59 -0300 Subject: [PATCH] tag: xmp: Fixing schema maps Do not forget to create a new schema for every supported schema instead of reusing the same object --- gst-libs/gst/tag/gstxmptag.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c index cc6c7667e7..b9fee8fbd9 100644 --- a/gst-libs/gst/tag/gstxmptag.c +++ b/gst-libs/gst/tag/gstxmptag.c @@ -905,6 +905,7 @@ _init_xmp_tag_map (gpointer user_data) _gst_xmp_add_schema ("tiff", schema); /* exif schema */ + schema = gst_xmp_schema_new (); _gst_xmp_schema_add_simple_mapping (schema, GST_TAG_DATE_TIME, "exif:DateTimeOriginal", GST_XMP_TAG_TYPE_SIMPLE, NULL, NULL); _gst_xmp_schema_add_simple_mapping (schema, @@ -984,6 +985,7 @@ _init_xmp_tag_map (gpointer user_data) _gst_xmp_add_schema ("exif", schema); /* photoshop schema */ + schema = gst_xmp_schema_new (); _gst_xmp_schema_add_simple_mapping (schema, GST_TAG_GEO_LOCATION_COUNTRY, "photoshop:Country", GST_XMP_TAG_TYPE_SIMPLE, NULL, NULL); @@ -992,6 +994,7 @@ _init_xmp_tag_map (gpointer user_data) _gst_xmp_add_schema ("photoshop", schema); /* iptc4xmpcore schema */ + schema = gst_xmp_schema_new (); _gst_xmp_schema_add_simple_mapping (schema, GST_TAG_GEO_LOCATION_SUBLOCATION, "Iptc4xmpCore:Location", GST_XMP_TAG_TYPE_SIMPLE, NULL, NULL);