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
@ -1407,7 +1407,6 @@ do_simple_exif_tag_serialization_deserialization (const gchar * gsttag,
|
||||
GstTagList *taglist = gst_tag_list_new ();
|
||||
|
||||
gst_tag_list_add_value (taglist, GST_TAG_MERGE_REPLACE, gsttag, value);
|
||||
|
||||
do_exif_tag_serialization_deserialization (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,
|
||||
&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 */
|
||||
g_value_set_static_string (&value, "rotate-0");
|
||||
do_simple_exif_tag_serialization_deserialization (GST_TAG_IMAGE_ORIENTATION,
|
||||
|
Loading…
x
Reference in New Issue
Block a user