[gstreamer-bugs] [Bug 333001] New: Memory leak in ffmpegenc

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Mar 1 06:49:43 PST 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=333001
 GStreamer | gst-ffmpeg | Ver: HEAD CVS

           Summary: Memory leak in ffmpegenc
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: gst-ffmpeg
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: josef.zlomek at itonis.tv
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


When new buffer is appended to the cache in gst_ffmpegenc_chain_audio, the
function gst_buffer_span() is used. But gst_buffer_span() does not unref the
source buffers (its arguments), and the buffers are never unref'd.
Since (almost) all buffers (smaller than frame size) go to cache, the memory
leak is quite severe.

The atached patch uses gst_buffer_join() for adding buffers to the cache
because
gst_buffer_join() unrefs its arguments. Therefore, the patch fixes the memory
leak.


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