[gstreamer-bugs] [Bug 340045] New: [GstBaseTransform] Buffer passed to ::transform_ip() has too big refcount

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Apr 28 10:45:48 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=340045
 GStreamer | gstreamer (core) | Ver: HEAD CVS

           Summary: [GstBaseTransform] Buffer passed to ::transform_ip() has
                    too big refcount
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: bilboed at bilboed.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


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);


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list