I need to read buffers from pads on request

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Sep 17 02:47:33 PDT 2013


On Mon, 2013-09-16 at 17:37 -0400, Santiago Olivera wrote:

Hi,

> Hi, I am trying to set up a plugin that can have up to 10 sink pads.
> It should be very simple: Get a buffer from each pad, compare them,
> and pick one of them to push. But still have not figured out how to
> deal with the pads on request.
> 
> 
> I was trying to follow the ideas on gstaggregator I found online but
> seems to be not valid anymore. It would be nice to have an example.

That's basically what most muxers do. Wait for a buffer on all pads, and
then pick one after comparing them all.

Have a look at the GstCollectPads helper object, and a muxer of your
choice (oggmux, qtmux, whatever).

Cheers
 -Tim




More information about the gstreamer-devel mailing list