Re : Always & Request pads at same time

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re : Always & Request pads at same time

Albert Costa
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 <[hidden email]>
À : Albert Costa <[hidden email]>
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 <[hidden email]>:
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel