[gstreamer-bugs] [Bug 500258] Buffer is not writable in do_transform_ip in gst.BaseTransform with passthrough=False and in_place=True

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Jan 18 02:01:31 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=500258

  GStreamer | gst-python | Ver: 0.10.9

Stefan Wehner changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stefan.wehner at gmail.com




------- Comment #2 from Stefan Wehner  2008-01-18 10:01 UTC -------
Carlos and I tracked this bug down to
gstbasetransform.c:gst_base_transform_prepare_output_buffer. 
For a writable input buffer with different caps, a new subbuffer is created (to
replace the caps), rendering the buffer readonly.

Changing the behaviour of subbuffers and making them writable is probably a
pretty radical change, and we don't have the sufficient knowledge about
gstreamer to change that, so I think we're left with two options:

 1) Replace the caps directly on the in buffer and pass it on
 2) Copy the in buffer, and repalce the caps on the copy

If it's be possible I'd go with 1) as it'd be more efficient.
In case anyone thinks/knows that this is not a good idea, and a copy should be
made instead, let us know.

I'll attach a proposed patch to the latest stable version.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=500258.




More information about the Gstreamer-bugs mailing list