support for array field defined via a length field, for GstMapInfo
Submitted by Jason Gerard DeRose
Link to original bug (#678663)
Description
(05:52:36 AM) __tim: we can always just add a gst_map_info_get_data() if there's no other way (05:52:41 AM) __tim: please file a bug about it
In PyGST, you could get the buffer data like this:
def on_preroll_handoff(element, buf, pad): data = buf.data
But there doesn't seem to be a way to do this with GStreamer 1.0 and PyGI. More awesome would be had if you could. BTW, you can get the MapInfo from the Buffer like this:
def on_preroll_handoff(element, buf, pad): map_info = buf.map_range(0, -1, Gst.MapFlags.READ)[1]