You can try blocking the src pad of your first element<br>
<br>
see : <a href="http://webcvs.freedesktop.org/gstreamer/gstreamer/docs/design/part-block.txt?revision=1.2&amp;view=markup">http://webcvs.freedesktop.org/gstreamer/gstreamer/docs/design/part-block.txt?revision=1.2&amp;view=markup
</a><br>
<br>
Regards,<br>
<br>
Antoine<br>
<br><br><div><span class="gmail_quote">On 7/20/06, <b class="gmail_sendername">Kalyanavarathan, Vasanth</b> &lt;<a href="mailto:VKalyanavarathan@ndsuk.com">VKalyanavarathan@ndsuk.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>



<div>
<div><font face="Arial" size="2"><span>Hello 
There</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>My Gst Application 
before modifying the pipeline content invokes pause and play using 
gst_element_set_state</span></font></div>
<div><font face="Arial" size="2"><span>in a thread context 
different from g_mainloop thread.</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>On some occasions I 
see that the gst_element_set_state does not return and 
hangs.</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>However by looking 
into the source I cannot see any obvious reason for this 
behaviour.</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>Could you please 
suggest an alternative asynchronous way to pause and play pipeline 
?</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>Thanks</span></font></div>
<div><font face="Arial" size="2"><span>Vasanth</span></font></div>This
email message and any attachments thereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it
to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please immediately notify the <a href="mailto:postmaster@nds.com" title="mailto:postmaster@nds.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">postmaster@nds.com</a> and destroy the original message
</div>

</div><br>-------------------------------------------------------------------------<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>
opinions on IT &amp; business topics through brief surveys -- and earn cash<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank">
http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV</a><br><br>_______________________________________________<br>gstreamer-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gstreamer-devel@lists.sourceforge.net">
gstreamer-devel@lists.sourceforge.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
</a><br><br><br></blockquote></div><br>