<div>I don't know that how you are doing it but I think better way of doing it is pause the pipeline and check in the bus callback that pipeline is really paused then only change the location of the file . Then set the pipeline state to play. </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Jun 16, 2010 at 9:57 PM, Albert Costa <span dir="ltr"><<a href="mailto:costa_albert@yahoo.fr">costa_albert@yahoo.fr</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div style="FONT-FAMILY: 'times new roman', 'new york', times, serif; FONT-SIZE: 12pt">
<div>Hi,</div>
<div>I have a pipeline that can be reducted to:</div>
<div><br></div>
<div>gst-launch dshowvideosrc ! tee ! queue ! ffmpegcolorspace ! ffenc_mpeg2video ! mpegtsmux ! filesink tee0. ! queue ! ffmpegcolorspace ! directdrawsink</div>
<div><br></div>
<div>All this is created/handled in a c application where I can start and stop the pipeline. I now have a requirement to change the location of the file after a given size (for example) is reached. I've started to test following sequence on user request for the moment:</div>
<div>-set pipeline to paused</div>
<div>-change filesink location</div>
<div>-set back pipeline to playing</div>
<div>But it seems it does not handle the change of location in the filesink. I've also tried to unlink/relink the filesink branch in combination with the state change, with no success.</div>
<div>Is there a way to change dynamically the filesink location, either by external commands (like I tried) or even better automatically with a plugin I am maybe not aware of?</div>
<div>Thanks for help,</div>
<div>Regards,</div>
<div>Al</div>
<div></div></div><br></div><br>------------------------------------------------------------------------------<br>ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit. See the prize list and enter to win:<br><a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>