GNOME Bugzilla – Bug 691687
GstImageType documentation is misleading
Last modified: 2013-01-14 11:13:27 UTC
According to http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gsttag.html#GstTagImageType , the image type is stored as part of the caps structure. This is wrong though. Taken from tags.c: if (image_type != GST_TAG_IMAGE_TYPE_NONE) { GST_LOG ("Setting image type: %d", image_type); image_info = gst_structure_new ("GstTagImageInfo", "image-type", GST_TYPE_TAG_IMAGE_TYPE, image_type, NULL); } sample = gst_sample_new (image, caps, NULL, image_info); so, the actual way to find out the image type is to use gst_sample_get_info().
commit 776bae5b841b6c769aa8ce6ea33412928680fbc1 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Mon Jan 14 10:34:04 2013 +0000 docs: fix 0.10-ism in GstTagImageType docs The image type is not in the info structure in the sample, not in the caps. https://bugzilla.gnome.org/show_bug.cgi?id=691687