mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
tag: xmp: Fixing schema maps
Do not forget to create a new schema for every supported schema instead of reusing the same object
This commit is contained in:
parent
09ec43a22e
commit
d764676583
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue