[Bug 723252] testsuite failure: libs/tag

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Apr 7 13:36:00 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=723252
  GStreamer | gst-plugins-base | 1.2.2

--- Comment #12 from David Ronis <david.ronis at mcgill.ca> 2014-04-07 20:35:55 UTC ---
Created an attachment (id=273743)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=273743)
Output after modifications mentioned in 11

I ran:  

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

and see:

Running suite(s): tag support library
0%: Checks: 1, Failures: 0, Errors: 1
libs/tag.c:1431:E:general:test_exif_tags_serialization_deserialization:0:
(after this point) Received signal 5 (Trace/breakpoint trap)

Just to be sure that I made the correct changes, here's what's been changed in
tag.c:

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);
  gst_buffer_unref (buf);

  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);

  /* 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_unref (buf);

  fail_unless (gst_tag_list_is_equal (taglist, taglist2));
  gst_tag_list_unref (taglist2);

  /* 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_unref (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);
}

-- 
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