[Bug 674085] New: [0.11] GstAdapter's buffer keeps growing indefinitely

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Apr 13 18:35:23 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=674085
  GStreamer | gstreamer (core) | 0.11.x

           Summary: [0.11] GstAdapter's buffer keeps growing indefinitely
    Classification: Platform
           Product: GStreamer
           Version: 0.11.x
        OS/Version: Mac OS
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: matej.knopp at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=212029)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=212029)
Patch to remove skipped part of adapter's buffer during mapping

Take the following scenario

adapter.push(10 bytes)
for (int i = 0; i < 1000; ++i)
{
  adapter.push(10 bytes);
  adapter.map
  adapter.unmap
  adapter.flush(10 bytes)
}

Here the adapter's head buffer will be 1000 * 10 bytes large, i.e. it will grow
10 bytes during every iteration. 

In my test after few seconds of video playback the buffer of video parser
adapter grew to several megabytes and the reallocations took more CPU cycles
than actual video decoding.

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