<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br>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!<br>Regards,<br>Al<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Message d'origine ----<br>De : Nie Jun <niej0001@gmail.com><br>À : Albert Costa <costa_albert@yahoo.fr><br>Envoyé le : Vendredi, 4 Juillet 2008, 3h43mn 57s<br>Objet : Re: [gst-devel] Always & Request pads at same time<br><br>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?<br> 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.<br>
<br><br><div class="gmail_quote">2008/7/3 Albert Costa <<a rel="nofollow" ymailto="mailto:costa_albert@yahoo.fr" target="_blank" href="mailto:costa_albert@yahoo.fr">costa_albert@yahoo.fr</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br>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.<br>
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?<br>
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...<br>
<br>If anyone has already
tried something similar, help would be appreciated,<br>Regards,<br>Al<br></div></div><div class="WgoR0d"><br>
<hr size="1">
Envoyé avec <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo! Mail</a>.<br>Une boite mail plus intelligente. </div>
</div><br>-------------------------------------------------------------------------<br>
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!<br>
Studies have shown that voting for your favorite open source project,<br>
along with a healthy diet, reduces your potential for chronic lameness<br>
and boredom. Vote Now at <a rel="nofollow" target="_blank" href="http://www.sourceforge.net/community/cca08">http://www.sourceforge.net/community/cca08</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" ymailto="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div><br>
<hr size="1">
Envoyé avec <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo! Mail</a>.<br>Une boite mail plus intelligente. </a></body></html>