[gst-devel] python bindings: how to modify gst.Buffer in place ?

Edward Hervey bilboed at gmail.com
Fri Jul 24 10:25:48 CEST 2009


On Thu, 2009-07-23 at 19:07 +0200, Olivier Aubert wrote:
> Hello
> 
> I cannot figure out how to modify a gst.Buffer in place. The context:
> the 'handoff' signal of a fakesrc, which passes a reference to a buffer,
> which is meant to be emitted by the src (like in
> gst-plugins-base/gst/playback/gstscreenshot.c ).
> 
> Reading the bindings code, it is possible to memcpy data through a slice
> assignment:
> buffer[0:buffer.size]='some data...'
> 
> However, there is no way to modify the buffer size, preventing the
> translation of the following C code:
>   GST_BUFFER_SIZE (buf) = GST_BUFFER_SIZE (in_buf);

  The setter for gst.Buffer.size hasn't been implemented (I can't even
figure out why it wasn't auto-generated).

  Please file a bug regarding that against gst-python.

    Edward

> 
> Should I file a bug against gst-python, or is there something I
> overlooked?
> 
> Regards,
> Olivier
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list