tag: xmp: Fixing schema maps
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 19 Apr 2011 02:16:59 +0000 (23:16 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sun, 15 May 2011 16:02:38 +0000 (13:02 -0300)
Do not forget to create a new schema for every supported schema
instead of reusing the same object

gst-libs/gst/tag/gstxmptag.c

index cc6c766..b9fee8f 100644 (file)
@@ -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);