mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
tests: tag: exif: Add tests for 'non-trivial' chars
Adds two new cases to check that characters are properly converted to ascii when writen to exif and parsed correctly back to utf8 when read.
This commit is contained in:
parent
cd46e0ca13
commit
436c533624
1 changed files with 6 additions and 1 deletions
|
@ -1407,7 +1407,6 @@ do_simple_exif_tag_serialization_deserialization (const gchar * gsttag,
|
||||||
GstTagList *taglist = gst_tag_list_new ();
|
GstTagList *taglist = gst_tag_list_new ();
|
||||||
|
|
||||||
gst_tag_list_add_value (taglist, GST_TAG_MERGE_REPLACE, gsttag, value);
|
gst_tag_list_add_value (taglist, GST_TAG_MERGE_REPLACE, gsttag, value);
|
||||||
|
|
||||||
do_exif_tag_serialization_deserialization (taglist);
|
do_exif_tag_serialization_deserialization (taglist);
|
||||||
|
|
||||||
gst_tag_list_free (taglist);
|
gst_tag_list_free (taglist);
|
||||||
|
@ -1466,6 +1465,12 @@ GST_START_TEST (test_exif_tags_serialization_deserialization)
|
||||||
do_simple_exif_tag_serialization_deserialization (GST_TAG_APPLICATION_NAME,
|
do_simple_exif_tag_serialization_deserialization (GST_TAG_APPLICATION_NAME,
|
||||||
&value);
|
&value);
|
||||||
|
|
||||||
|
/* non ascii chars */
|
||||||
|
g_value_set_static_string (&value, "AaÄäEeËëIiÏïOoÖöUuÜü");
|
||||||
|
do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value);
|
||||||
|
g_value_set_static_string (&value, "Äë");
|
||||||
|
do_simple_exif_tag_serialization_deserialization (GST_TAG_ARTIST, &value);
|
||||||
|
|
||||||
/* image orientation tests */
|
/* image orientation tests */
|
||||||
g_value_set_static_string (&value, "rotate-0");
|
g_value_set_static_string (&value, "rotate-0");
|
||||||
do_simple_exif_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION,
|
do_simple_exif_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION,
|
||||||
|
|
Loading…
Reference in a new issue