<div dir="ltr">Hi Pavel ,<br>You can Unlink the elements ,then set state of pipeline as NULL ,then set next file to play using the same pipeline,then Link the elements and set state as PLAY.<br>I think it is help to you.<br>
<br><br><div class="gmail_quote">On Thu, Oct 9, 2008 at 1:34 AM, Pavel Zeldin <span dir="ltr"><<a href="mailto:pzeldin@gmail.com">pzeldin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I need advice on how to restart a pipeline cleanly. The pipeline<br>
handles recording from several live sources. The recording goes to a<br>
file (may be several files) and/or network.<br>
>From time to time I want to close the current file(s) and begin a new<br>
one. File should not be closed while there is outstanding data in the<br>
pipeline.<br>
To ensure this the application sends EOS to the pipeline. When EOS is<br>
seen on the bus the application stops the pipeline.<br>
But in order to restart it all dynamic pads must be created and linked<br>
again, and caps negotiation repeated. This takes long time.<br>
Is there a simpler (i.e. faster) way?<br>
<br>
-Pavel.<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a 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>
</blockquote></div><br><br clear="all"><br>-- <br>Thanx & Regards<br>Ajay Gautam<br><br>
</div>