I need to read buffers from pads on request

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


On Tue, 2013-09-17 at 09:00 -0400, Santiago Olivera wrote:

> Yes, I saw that. But I read somewhere that CollectPads will give me
> the buffer with the most recent timeStamp and that if I wanted
> something different I should do it myself. But I will check it out
> again. Thanks a lot for your help.

No, it's more flexible than that, you can use your own criteria if you
like.

Cheers
 -Tim

> On Tue, Sep 17, 2013 at 5:47 AM, Tim-Philipp Müller <t.i.m at zen.co.uk>
> wrote:
>         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
>         
>         
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.freedesktop.org
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list