[Bug 726337] omxbufferpool: leak buffers when stopped

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Mar 17 10:40:21 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=726337
  GStreamer | gst-omx | git

Julien Isorce <julien.isorce> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #272127|none                        |committed
             status|                            |

--- Comment #6 from Julien Isorce <julien.isorce at gmail.com> 2014-03-17 18:04:35 UTC ---
(From update of attachment 272127)
commit e8ca74c6f862e5f1e0bdc5057dc836a71902244e
Author: Julien Isorce <julien.isorce at collabora.co.uk>
Date:   Mon Mar 17 09:57:11 2014 +0000

    omxbufferpool: fix memory leak if used on output port

    When using GstOMXBufferPool on an output port, it internally uses
    a GPtrArray to manage the GstBuffers instead of the default queue
    from the GstBufferPool base class.

    In this case GstBufferPool::default_free_buffer is not called when
    the pool is stopped. Because the queue is empty. So explicitely
    call gst_omx_buffer_pool_free_buffer on each buffer contained in
    the GPtrArray.

    https://bugzilla.gnome.org/show_bug.cgi?id=726337

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