tag: xmp: Add missing schema creation

tiff schema entries were being added to the previous
schema (xap) because a new one wasn't being created
for it.
This commit is contained in:
Thiago Santos 2011-03-21 18:33:03 -03:00
parent 103fb67d20
commit 75897c716f

View file

@ -205,7 +205,6 @@ _xmp_tag_get_mapping (const gchar * gst_tag)
ret = (GPtrArray *) gst_xmp_schema_lookup (schema, GUINT_TO_POINTER (key)); ret = (GPtrArray *) gst_xmp_schema_lookup (schema, GUINT_TO_POINTER (key));
} }
return ret; return ret;
} }
@ -822,6 +821,7 @@ _init_xmp_tag_map ()
_gst_xmp_add_schema ("xmp", schema); _gst_xmp_add_schema ("xmp", schema);
/* tiff */ /* tiff */
schema = gst_xmp_schema_new ();
_gst_xmp_schema_add_simple_mapping (schema, _gst_xmp_schema_add_simple_mapping (schema,
GST_TAG_DEVICE_MANUFACTURER, "tiff:Make", GST_XMP_TAG_TYPE_SIMPLE, NULL, GST_TAG_DEVICE_MANUFACTURER, "tiff:Make", GST_XMP_TAG_TYPE_SIMPLE, NULL,
NULL); NULL);