[Gstreamer-openmax] Glib Error on OMX_FreeBuffer

Felipe Contreras felipe.contreras at nokia.com
Thu Dec 4 09:27:07 PST 2008


On Thu, 2008-12-04 at 10:56 -0600, ext Raj Swaminathan wrote:
> 
> Hi,
> 
> Im working on creating a mp3 decoder sink plugin independent of the
> bellagio components.
> My OpenMax IL libraries are from TI and its an older version based on
> the Omap 2430.
> 
> In the gst_mp3sink_stop method
> When i call OMX_FreeBuffer() freeing a buffer that was allocated
> before with OMX_AllocateBuffer, i get a glibc memory violation SEG
> fault.  
> 
> When i run the same sequence of OMX calls without using
> gstreamer ..... the program runs fine. 
> 
> Have any of you faced this problem before or know of a solution ?? 

In gstomx_base_filter OMX_UseBuffer is used, the data is allocated with
g_malloc, and freed with g_free. This is required for the zero-copy
hack.

Are you using gstomx_base_sink?

Can you contribute that code? I'll be happy to merge it.

-- 
Felipe Contreras





More information about the Gstreamer-openmax mailing list