After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340045 - [GstBaseTransform] Buffer passed to ::transform_ip() has too big refcount
[GstBaseTransform] Buffer passed to ::transform_ip() has too big refcount
Status: RESOLVED DUPLICATE of bug 343196
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 339767 (view as bug list)
Depends on:
Blocks: 339767
 
 
Reported: 2006-04-28 17:45 UTC by Edward Hervey
Modified: 2006-07-03 13:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Edward Hervey 2006-04-28 17:45:47 UTC
When implementing a GstBaseTransform where:
* Incoming buffers are writable (refcount == 1),
* AND we don't implement a prepare_output_buffer() method in the subclass
* AND The src and sink caps are the same

The buffer passed as argument to the transform_ip() virtual method has one reference too much, .... which makes the buffer un-writable (refcount > 1) !

The responsible part seems to be here (gstbasetransform.c:889):
        /* Input buffer is already writable and caps are the same, just ref and return it */
        *out_buf = in_buf;
        gst_buffer_ref (in_buf);
Comment 1 Edward Hervey 2006-04-28 17:47:43 UTC
*** Bug 339767 has been marked as a duplicate of this bug. ***
Comment 2 Wim Taymans 2006-07-03 13:46:39 UTC

*** This bug has been marked as a duplicate of 343196 ***