<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>Thanks Yann,</DIV>
<DIV>I've done some testing, but none gave satisfaction up to now. </DIV>
<DIV>Basically what I tried is as follows (with different variations):</DIV>
<DIV>-set main pipeline to pause,</DIV>
<DIV>-lock state for filesrc1 </DIV>
<DIV>-set pipeline to ready</DIV>
<DIV>-change the filesrc2 location to new file, and set its seek event</DIV>
<DIV>-unlock state for filesrc1</DIV>
<DIV>-set pipeline to ready</DIV>
<DIV>&nbsp;</DIV>
<DIV>What I usually end up with, is the program hanging for a state change, or a video freeze...</DIV>
<DIV>Any hint on&nbsp;good practices&nbsp;to follow?</DIV>
<DIV>Regards,</DIV>
<DIV>Al<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">De :</SPAN></B> Yann Gilquin &lt;ygilquin.dev@gmail.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">À :</SPAN></B> Discussion of the development of GStreamer &lt;gstreamer-devel@lists.sourceforge.net&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé le :</SPAN></B> Mercredi, 26 Novembre 2008, 10h43mn 52s<BR><B><SPAN style="FONT-WEIGHT: bold">Objet&nbsp;:</SPAN></B> Re: [gst-devel] Setting different states for subpipelines<BR></FONT><BR>Hi Albert,<BR>maybe <A rel=nofollow name=gst-element-set-locked-state></A>gst_element_set_locked_state could be an entry point to solve your problem. It basically removes state dependency with the parent.<BR><BR>Yann Gilquin<BR><BR><BR>
<DIV class=gmail_quote>2008/11/26 Albert Costa <SPAN dir=ltr>&lt;<A href="mailto:costa_albert@yahoo.fr" target=_blank rel=nofollow ymailto="mailto:costa_albert@yahoo.fr">costa_albert@yahoo.fr</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Hi gstreamer-devels,</DIV>
<DIV>I have a question concerning the change of states in the pipeline. </DIV>
<DIV>I have my main pipeline containing 2 video branches:</DIV>
<DIV>&nbsp;</DIV>
<DIV>(subpipeline1): filesrc1 - decodebin1 - ffmpegcolorspace1 - directdrawsink1</DIV>
<DIV>
<DIV>(subpipeline2): filesrc2 - decodebin2 - ffmpegcolorspace2 - directdrawsink2</DIV>
<DIV>&nbsp;</DIV>
<DIV>I start each line with a different file and am able now to set a seek for each (thanks to previous gst-devel help). These 2 lines are supposed to run synchronously (the files are played in parallel). My problem now is that when one of the file ends (end of seek reached), I need to set a new file (with a new seek). To do this, I set my main pipeline to state READY, then set the new file name and seek in my branch and then set the state back to PLAYING. But doing so, the other subpipeline looses its position and starts over the file it was playing. I tried therefore to set the main pipeline to PAUSED, then only the subpipeline to be changed in READY (then i set its new file), and finally PLAYING again.. But I can't have it working... Is it possible to have different subparts of the main pipeline in different states, or am I just going wrong direction?</DIV>
<DIV>Regards,</DIV>
<DIV>Al</DIV></DIV></DIV><BR></DIV><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 &amp; 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&amp;url=/" target=_blank rel=nofollow>http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</A><BR>_______________________________________________<BR>gstreamer-devel mailing list<BR><A href="mailto:gstreamer-devel@lists.sourceforge.net" target=_blank rel=nofollow ymailto="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
 rel=nofollow>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></div><br>



      </body></html>