[gst-devel] Felipe Contreras : util: Fix for allocate buffer.

Felipe Contreras felipec at localhost.localdomain
Sun Feb 8 18:31:50 CET 2009


Module: gst-openmax
Branch: master
Commit: 10c238e8a34c4693a742f596faec4efe2185ea77
URL:    http://cgit.freedesktop.org/gstreamer/gst-openmax/commit/?id=10c238e8a34c4693a742f596faec4efe2185ea77

Author: Felipe Contreras <felipe.contreras at nokia.com>
Date:   Wed Dec 10 18:58:03 2008 +0200

util: Fix for allocate buffer.

The buffer shall be freed only when allocated by us as opposed to some
other element.

Signed-off-by: Felipe Contreras <felipe.contreras at nokia.com>

---

 omx/gstomx_util.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/omx/gstomx_util.c b/omx/gstomx_util.c
index 429d47a..1b34b9b 100644
--- a/omx/gstomx_util.c
+++ b/omx/gstomx_util.c
@@ -505,10 +505,11 @@ port_free_buffers (GOmxPort *port)
 
         if (omx_buffer)
         {
-#ifdef USE_ALLOCATE_BUFFER
+#if 0
+            /** @todo how shall we free that buffer? */
             g_free (omx_buffer->pBuffer);
             omx_buffer->pBuffer = NULL;
-#endif /* USE_ALLOCATE_BUFFER */
+#endif
 
             OMX_FreeBuffer (port->core->omx_handle, port->port_index, omx_buffer);
             port->buffers[i] = NULL;





More information about the gstreamer-devel mailing list