[Bug 723252] testsuite failure: libs/tag
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Apr 9 13:14:02 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=723252
GStreamer | gst-plugins-base | 1.2.2
--- Comment #14 from David Ronis <david.ronis at mcgill.ca> 2014-04-09 20:14:00 UTC ---
Created an attachment (id=273933)
--> (https://bugzilla.gnome.org/attachment.cgi?id=273933)
modifed test
I tried again
GST_DEBUG=*:9 G_DEBUG=fatal_warnings
GST_CHECKS=test_exif_tags_serialization_deserialization make
libs/tag.check-norepeat 2>dbg.log
CC libs/libs_tag-tag.o
CCLD libs/tag
Running suite(s): tag support library
00000000 (0x8121f98): 00 00 00 00 00 00 ......
tags 1: taglist, copyright=(string)"my\ string";
tags 2: taglist;
0%: Checks: 1, Failures: 1, Errors: 0
libs/tag.c:1359:F:general:test_exif_tags_serialization_deserialization:0:
Assertion 'gst_tag_list_is_equal (taglist, taglist2)' failed
Here's the modified code:
static void
do_exif_tag_serialization_deserialization (GstTagList * taglist)
{
GstTagList *taglist2;
GstBuffer *buf;
/* LE */
buf = gst_tag_list_to_exif_buffer (taglist, G_LITTLE_ENDIAN, 0);
taglist2 = gst_tag_list_from_exif_buffer (buf, G_LITTLE_ENDIAN, 0);
GstMapInfo map;
gst_buffer_map (buf, &map, GST_MAP_READ);
gst_util_dump_mem(map.data, map.size);
gst_buffer_unmap (buf, &map);
g_print ("tags 1: %s\n", gst_tag_list_to_string (taglist));
g_print ("tags 2: %s\n", gst_tag_list_to_string (taglist2));
fail_unless (gst_tag_list_is_equal (taglist, taglist2));
gst_tag_list_unref (taglist2);
gst_buffer_unref (buf);
/* BE */
buf = gst_tag_list_to_exif_buffer (taglist, G_BIG_ENDIAN, 0);
taglist2 = gst_tag_list_from_exif_buffer (buf, G_BIG_ENDIAN, 0);
gst_buffer_map (buf, &map, GST_MAP_READ);
gst_util_dump_mem(map.data, map.size);
gst_buffer_unmap (buf, &map);
g_print ("tags 1: %s\n", gst_tag_list_to_string (taglist));
g_print ("tags 2: %s\n", gst_tag_list_to_string (taglist2));
fail_unless (gst_tag_list_is_equal (taglist, taglist2));
gst_tag_list_unref (taglist2);
gst_buffer_unref (buf);
/* APP1 */
buf = gst_tag_list_to_exif_buffer_with_tiff_header (taglist);
taglist2 = gst_tag_list_from_exif_buffer_with_tiff_header (buf);
gst_buffer_map (buf, &map, GST_MAP_READ);
gst_util_dump_mem(map.data, map.size);
gst_buffer_unmap (buf, &map);
g_print ("tags 1: %s\n", gst_tag_list_to_string (taglist));
g_print ("tags 2: %s\n", gst_tag_list_to_string (taglist2));
fail_unless (gst_tag_list_is_equal (taglist, taglist2));
gst_tag_list_unref (taglist2);
gst_buffer_unref (buf);
}
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list