Always & Request pads at same time

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

Always & Request pads at same time

Albert Costa
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