Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / debian / patches / 0027-tests-xmp-New-tests-for-the-Iptc4xmpExt-tags.patch
diff --git a/gst-plugins-base-subtitles0.10/debian/patches/0027-tests-xmp-New-tests-for-the-Iptc4xmpExt-tags.patch b/gst-plugins-base-subtitles0.10/debian/patches/0027-tests-xmp-New-tests-for-the-Iptc4xmpExt-tags.patch
new file mode 100644 (file)
index 0000000..0fb86e0
--- /dev/null
@@ -0,0 +1,59 @@
+From 20e5394e98aa25abb17838cc5d70fa1035c5fd1d Mon Sep 17 00:00:00 2001
+From: Thiago Santos <thiago.sousa.santos@collabora.co.uk>
+Date: Tue, 19 Apr 2011 08:41:53 -0300
+Subject: [PATCH] tests: xmp: New tests for the Iptc4xmpExt tags
+
+---
+ tests/check/libs/tag.c |   15 +++++++++++----
+ 1 files changed, 11 insertions(+), 4 deletions(-)
+
+diff --git a/tests/check/libs/tag.c b/tests/check/libs/tag.c
+index c963ce5..555cdb8 100644
+--- a/tests/check/libs/tag.c
++++ b/tests/check/libs/tag.c
+@@ -913,12 +913,13 @@ tag_list_equals (GstTagList * taglist, GstTagList * taglist2)
+ }
+ static void
+-do_xmp_tag_serialization_deserialization (GstTagList * taglist)
++do_xmp_tag_serialization_deserialization (GstTagList * taglist,
++    const gchar ** schemas)
+ {
+   GstTagList *taglist2;
+   GstBuffer *buf;
+-  buf = gst_tag_list_to_xmp_buffer (taglist, TRUE);
++  buf = gst_tag_list_to_xmp_buffer_full (taglist, TRUE, schemas);
+   taglist2 = gst_tag_list_from_xmp_buffer (buf);
+   tag_list_equals (taglist, taglist2);
+@@ -935,7 +936,7 @@ do_simple_xmp_tag_serialization_deserialization (const gchar * gsttag,
+   gst_tag_list_add_value (taglist, GST_TAG_MERGE_REPLACE, gsttag, value);
+-  do_xmp_tag_serialization_deserialization (taglist);
++  do_xmp_tag_serialization_deserialization (taglist, NULL);
+   gst_tag_list_free (taglist);
+ }
+@@ -1122,13 +1123,19 @@ GST_END_TEST;
+ GST_START_TEST (test_xmp_compound_tags)
+ {
++  const gchar *schemas[] = { "Iptc4xmpExt", NULL };
+   GstTagList *taglist = gst_tag_list_new ();
+   gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_KEYWORDS, "k1",
+       GST_TAG_KEYWORDS, "k2", GST_TAG_TITLE, "title", GST_TAG_KEYWORDS, "k3",
+       NULL);
++  do_xmp_tag_serialization_deserialization (taglist, NULL);
++  gst_tag_list_free (taglist);
+-  do_xmp_tag_serialization_deserialization (taglist);
++  taglist = gst_tag_list_new ();
++  gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_GEO_LOCATION_COUNTRY,
++      "Brazil", GST_TAG_GEO_LOCATION_CITY, "Campina Grande", NULL);
++  do_xmp_tag_serialization_deserialization (taglist, schemas);
+   gst_tag_list_free (taglist);
+ }