python Gst.Buffer info unable to set value for field

Kevron Rees tripzero.kev at gmail.com
Wed Mar 4 12:56:45 PST 2015


Looks like there's a bug that prevents info.data from being set like this.

A hackish workaround is to do something like this:

https://github.com/stb-tester/stb-tester/blob/master/_stbt/gst_hacks.py



On Wed, Mar 4, 2015 at 1:49 AM, Kevron Rees <tripzero.kev at gmail.com> wrote:

>  buff = Gst.Buffer.new_allocate(None, 20, None)
>  success, info = buff.map(Gst.MapFlags.READ)
>  info.data = [1,1,1,1,1]
>
>  RuntimeError: unable to set value for field
>
> I must be doing something stupid...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150304/34963bc3/attachment.html>


More information about the gstreamer-devel mailing list