Commit 35c1cf16 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by Tim-Philipp Müller

tag: exif: register common tags from tag library

Exif uses tags like  image-vertical-ppi or image-horizontal-ppi which are
registered in gst_tag_register_musicbrainz_tags(), but neither GstExifReader
nor GstExifWriter register them.
parent f78a50ed
......@@ -456,6 +456,8 @@ static void
gst_exif_reader_init (GstExifReader * reader, gint byte_order,
const GstBuffer * buf, guint32 base_offset)
ensure_exif_tags ();
reader->taglist = gst_tag_list_new ();
reader->buffer = buf;
reader->base_offset = base_offset;
......@@ -524,6 +526,8 @@ gst_exif_reader_reset (GstExifReader * reader, gboolean return_taglist)
static void
gst_exif_writer_init (GstExifWriter * writer, gint byte_order)
ensure_exif_tags ();
gst_byte_writer_init (&writer->tagwriter);
gst_byte_writer_init (&writer->datawriter);
......@@ -68,6 +68,8 @@ const gchar * __exif_tag_capturing_metering_mode_from_exif_value (gint value);
gint __exif_tag_capturing_source_to_exif_value (const gchar * str);
const gchar * __exif_tag_capturing_source_from_exif_value (gint value);
#define ensure_exif_tags gst_tag_register_musicbrainz_tags
#endif /* __GST_TAG_EDIT_PRIVATE_H__ */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment