Memory leak in omapdmaifbsink

Jorge Fernandez Monteagudo jorgefm at cirsa.com
Thu Jun 6 00:39:27 PDT 2013


Hi,

I think I've found a little bug in the TI codecs 'omapdmaifbsink'. I don't know the proper
way to notify this then I email to the gstreamer list.

I've patched the 'omapfb.c' from gstreamer-ti_svnr962/src

--- gstreamer-ti_svnr962/src/omapfb.c   2013-06-04 15:39:07.000000000 +0200
+++ gstreamer-ti_svnr962/src/omapfb.c   2013-06-06 09:31:13.019767680 +0200
@@ -772,6 +772,9 @@
             return FALSE;https://mail.cirsa.com/owa/?ae=PreFormAction&t=IPM.Note&a=Send#
     }

+    if (self->buffer && self->buffer != self->framebuffer)
+        free (self->buffer);
+
     if (munmap (self->framebuffer, self->mem_info.size))
         return FALSE;

I hit this memory leak if I play the next pipeline in a program in an endless loop
because the buffer where the frame is carried is not released.

gst-launch-0.10 -v filesrc location=<mp4 file> ! qtdemux ! TIViddec2 engineName=codecServer ! omapdmaifbsink

Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.


More information about the gstreamer-devel mailing list