Hi Mike!<div><br></div><div>First, thanks for your answer.</div><div><br></div><div>My element won&#39;t read from a file. It will read from a socket, using a object-oriented RPC library (ZeroC Ice). I take that example from the &quot;plugin writers guide&quot; because it&#39;s the example of use of &quot;sometimes pads&quot;. That example from the tutorial can be done using filesrc and a demuxer, as you propose, but the problem is still here: the demuxer will have a bunch of sometime pads that will be created and added to the element at exec time.</div>
<div><br></div><div>I need to make my element waits to receive the data through the library, and when it happens, create and add the sometime pad to the element and pass it to the connected sink pad of other element in the pipeline.</div>
<div><br></div><div>In Python I can&#39;t use gst.BaseSrc, because apparently, it only allows &quot;always pads&quot;, and using gst.Element as super-class, I can&#39;t find the way to write the &quot;loop&quot; method shown on that C-example.<br>
<div><br><div class="gmail_quote">2010/8/19 Michael Smith <span dir="ltr">&lt;<a href="mailto:msmith@xiph.org">msmith@xiph.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
</div>Why would this be a source element? If it&#39;s getting data from a file,<br>
it should probably be a demuxer (based on your description), not a<br>
source at all.<br>
<br>
You should be able to write a pipeline-driving demuxer element with gst-python.<br>
<br>
Mike<br><br></blockquote></div></div></div>