mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
tag: id3v2: Set image type from APIC frame as "image-type" field of GST_TAG_IMAGE buffer caps (#344605).
Original commit message from CVS: * gst-libs/gst/tag/id3v2frames.c: (parse_picture_frame): Set image type from APIC frame as "image-type" field of GST_TAG_IMAGE buffer caps (#344605).
This commit is contained in:
parent
1cc10b3611
commit
f0a1b71dfe
1 changed files with 9 additions and 3 deletions
|
@ -495,9 +495,15 @@ parse_picture_frame (ID3TagsWorking * work)
|
|||
}
|
||||
|
||||
if (image && image_caps) {
|
||||
/* FIXME: use an enum here, declare in -base/gst-libs/gst/tag/? */
|
||||
/* gst_structure_set (gst_caps_get_structure (image_caps, 0),
|
||||
"id3-picture-type", G_TYPE_INT, (gint) pic_type, NULL); */
|
||||
/* FIXME: remove #ifdef once we depend on -base >= 0.10.9 */
|
||||
#ifdef GST_TYPE_TAG_IMAGE_TYPE
|
||||
if (pic_type > 0x14)
|
||||
pic_type = GST_TAG_IMAGE_TYPE_UNDEFINED;
|
||||
gst_structure_set (gst_caps_get_structure (image_caps, 0),
|
||||
"image-type", GST_TYPE_TAG_IMAGE_TYPE,
|
||||
(GstTagImageType) pic_type, NULL);
|
||||
#endif
|
||||
|
||||
gst_buffer_set_caps (image, image_caps);
|
||||
gst_caps_unref (image_caps);
|
||||
if (pic_type == 0x01 || pic_type == 0x02) {
|
||||
|
|
Loading…
Reference in a new issue