[gst-devel] Re : Always & Request pads at same time
Albert Costa
costa_albert at yahoo.fr
Mon Jul 7 10:11:36 CEST 2008
Hi,
that's finally what I did, as it was already the case in my original plugin. It's just that I wanted to test if I culd replace one of the request by a always pad, but it just complicates the task. Thanks anyway!
Regards,
Al
----- Message d'origine ----
De : Nie Jun <niej0001 at gmail.com>
À : Albert Costa <costa_albert at yahoo.fr>
Envoyé le : Vendredi, 4 Juillet 2008, 3h43mn 57s
Objet : Re: [gst-devel] Always & Request pads at same time
I guess you are implementing a mux or something like it.You should use GstCollectPadsFunction on all your pads even sometimes you have only one pad. Otherwise, how every pad know all pads are data ready?
When only one pad exist, one buffer can drive you process function. If another pad is created, the GstCollectPadsFunction will wait both pads are data ready, then call process function: collect.
2008/7/3 Albert Costa <costa_albert at yahoo.fr>:
Hi,
I'd like to write a plugin that has both GST_PAD_ALWAYS (would be type 'video/x-raw-rgb' for ex) and GST_PAD_REQUEST sink pads ("any" type, receiving possibly data from my own other plugins upstreams). I am able to create the 'always' pad on init, and the others through a request_pad function.
But how can I get buffers from all of them synchronously? 'always' pad would usually be handled by a chain() function, whereas the 'request' pads are handled through the GstCollectPadsFunction... Is there a way to mix all of that, or is it not possible?
Currently, I have found a workaround by setting my 'always' pad as a 'request' pad as well (then I just create the pad using the right template name when I link elements), but I feel this is a bit clumsy...
If anyone has already tried something similar, help would be appreciated,
Regards,
Al
________________________________
Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail..yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080707/cf0deadb/attachment.htm>
More information about the gstreamer-devel
mailing list