[Bug 705863] New: Memory leak in Gst::XImageSink::get_last_buffer

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Aug 12 09:59:59 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=705863
  GStreamer | gstmm | 0.10.11

           Summary: Memory leak in Gst::XImageSink::get_last_buffer
    Classification: Platform
           Product: GStreamer
           Version: 0.10.11
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstmm
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: holger.seelig at yahoo.de
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


In gstreamermm is a memory leak with Gst::XImageSink::get_last_buffer. I used
the following code to update a OpenGL texture every frame:

Glib::RefPtr <Gst::Buffer> buffer = xImageSink -> get_last_buffer ();

if (buffer)
{
   ...
}

I figured out that the call to get_last_buffer causes a memory leak.

The c version of this code works:

GstBuffer* buffer = gst_base_sink_get_last_buffer (Glib::RefPtr
<Gst::BaseSink>::cast_static (getVideoSink ()) -> gobj ());

if (buffer)
{
   ...
   gst_buffer_unref (buffer);
}

I don't know if all VideoSinks are affected. I only tested Gst::XImageSink.

I used gstreamermm-0.10-2 / 0.10.11-0ubuntu1 on Ubuntu 13.4 (Raring).

The affected code can be seen in the source code of Titania at
http://bazaar.launchpad.net/~holger-seelig/titania/trunk/view/head:/libtitania-x3d/Titania/X3D/Components/Texturing/MovieTexture.cpp

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