2008-10-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+ * gst-libs/gst/tag/tags.c: (gst_tag_image_data_to_image_buffer):
+ Don't drop the last byte of image tags if they're not an URI list.
+ Fixes bug #556066.
+
+2008-10-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+
* gst/typefind/gsttypefindfunctions.c: (flac_type_find):
For looking at the 4th byte we have to get 4 bytes of course
and not 3.
memcpy (GST_BUFFER_DATA (image), image_data, image_data_len);
GST_BUFFER_DATA (image)[image_data_len] = '\0';
- GST_BUFFER_SIZE (image) = image_data_len;
+ GST_BUFFER_SIZE (image) = image_data_len + 1;
/* Find GStreamer media type, can't trust declared type */
caps = gst_type_find_helper_for_buffer (NULL, image, NULL);
* to keep the original size of the image
*/
if (!g_str_equal (name, "text/uri-list"))
- GST_BUFFER_SIZE (image) = GST_BUFFER_SIZE (image) - 1;
+ GST_BUFFER_SIZE (image) = image_data_len;
if (image_type != GST_TAG_IMAGE_TYPE_NONE) {
GST_LOG ("Setting image type: %d", image_type);