[gst-devel] Use of own buffer_alloc function

Daniel James Laird daniel.j.laird at nxp.com
Wed Mar 11 13:27:23 CET 2009


All,

I am have real difficulty in getting a buffer_alloc function in my sink class that extends GstVideoSink to work.
At the moment it does not even appear to be being called!

I have registered with the base sink i.e
basesink->buffer_alloc = GST_DEBUG_FUNCPTR(my_buffer_alloc);

Yet in my sink it seems that the function is not getting called.
However render is getting called and doing as expected

The graph I have created is something like this:
filesrc -> demux -> switch -> queue -> my_audio_sink
                 -> switch -> queue -> my_video_sink

The Audio and video sink in my case act as end of line as they are in fact input to my on board embedded decoders etc.  I want to be able to give the demux a buffer so that I can then DMA it into my decoder.   Is this possible? It certainly appeared so in the docs.  

Any help much appreciated.
Daniel Laird




More information about the gstreamer-devel mailing list