<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;">Thanks Tim,<br>I found the interleave plugin very useful to adapt to my needs,<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 : Tim Müller &lt;t.i.m@zen.co.uk&gt;<br>À : gstreamer-devel@lists.sourceforge.net<br>Envoyé le : Vendredi, 13 Juin 2008, 16h49mn 00s<br>Objet&nbsp;: Re: [gst-devel] Creating a simple 1-N plugin<br><br>On Fri, 2008-06-13 at 14:27 +0000, Albert Costa wrote:<br><br>Hi,<br><br>&gt; I want to create a plugin that has 1 sink pad and N (fixed, no request<br>&gt;&nbsp; nor sometimes, so let's say 2) source pads. The sink gets some video,<br>&gt;&nbsp; and source pads 1 &amp; 2 would send both
 home-generated data buffers. Is<br>&gt;&nbsp; there any simple example on how to create such a plugin. Can it work<br>&gt;&nbsp; on the basic '1-1' model, but with creating 2 src pads, pushing my<br>&gt;&nbsp; buffers over the pads in the chain() method? Or does it have to use a<br>&gt;&nbsp; loop() ? <br><br>You can do that from within a chain function. You can push one buffer on<br>one pad, and then push a buffer on the other pad (or the same pad again)<br>next time. Or push one buffer on both source pads, or save the buffer<br>for later processing and not push anything at all - it's all allowed.<br><br>Most demuxers work like this. Deinterleave in gst-plugins-bad is another<br>element which pushes buffers on multiple source pads from a chain<br>function.<br><br> Cheers<br>&nbsp; -Tim<br><br><br><br>-------------------------------------------------------------------------<br>Check out the new SourceForge.net Marketplace.<br>It's the best place to buy
 or sell services for<br>just about anything Open Source.<br><a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.sourceforge.net" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><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>