[Bug 679145] New: gst_buffer_copy and gst_buffer_make_writable semantics

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jun 29 07:41:32 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=679145
  GStreamer | gstreamer (core) | git

           Summary: gst_buffer_copy and gst_buffer_make_writable semantics
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: mnauw at users.sourceforge.net
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


In 0.10, both functions return a buffer that is "independent" in the sense that
writing into it will not affect the buffer it originated from.

However, attached patch to gstbuffer core unit test shows that is no longer the
case at present, and memory of the new buffer is still shared with the original
one.

While this may be very much intentional, it is considerably surprising to say
the least, whether by itself or in the breaking with 0.10.  It is also not
documented (clearly afaics).  And if this is as it should be and remain, then
we are missing on utility function (or whatever) that will really come up with
an independent copy (in 0.10 tradition).

-- 
Configure bugmail: https://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