<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>Hi,</div>
<div>&nbsp;</div>
<div>I have a pipeline as <font face="Courier New"><span style="background-color:#E8F2FE">gst_bin_add_many (</span></font><font face="Courier New" color="#7F0055"><span style="background-color:#E8F2FE"><b>GST_BIN</b></span></font><font face="Courier New"><span style="background-color:#E8F2FE">
(bin), </span></font><font face="Courier New"><span style="background-color:#E8F2FE">source</span></font><font face="Courier New"><span style="background-color:#E8F2FE">, decoder, </span></font><font face="Courier New"><span style="background-color:#E8F2FE">sink</span></font><font face="Courier New"><span style="background-color:#E8F2FE">,
</span></font><font face="Courier New" color="#7F0055"><span style="background-color:#E8F2FE"><b>NULL</b></span></font><font face="Courier New"><span style="background-color:#E8F2FE">);</span></font><font face="Courier New"><span style="background-color:#E8F2FE">,
when I call </span></font><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (bin, GST_STATE_PLAYING);</span></font><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE"> then state
change sequence is </span></font></div>
<div><font face="Courier New" color="#3F7F5F">&nbsp;</font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font face="Courier New" color="#000000"><span style="background-color:#E8F2FE">sink</span></font><span style="background-color:#E8F2FE">, GST_STATE_</span><font face="Courier New"><span style="background-color:#E8F2FE">READY</span></font><span style="background-color:#E8F2FE">);</span><font face="Courier New"><span style="background-color:#E8F2FE">
</span></font></font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font color="#000000"><span style="background-color:#E8F2FE">decoder</span></font><span style="background-color:#E8F2FE">, GST_STATE_</span><font face="Courier New"><span style="background-color:#E8F2FE">READY</span></font><span style="background-color:#E8F2FE">);</span></font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font face="Courier New" color="#000000"><span style="background-color:#E8F2FE">source</span></font><span style="background-color:#E8F2FE">, GST_STATE_</span><font face="Courier New"><span style="background-color:#E8F2FE">READY</span></font><span style="background-color:#E8F2FE">);</span></font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font face="Courier New" color="#000000"><span style="background-color:#E8F2FE">sink</span></font><span style="background-color:#E8F2FE">, GST_STATE_P</span><font face="Courier New"><span style="background-color:#E8F2FE">AUSED</span></font><span style="background-color:#E8F2FE">);</span><font face="Courier New"><span style="background-color:#E8F2FE">
</span></font></font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font color="#000000"><span style="background-color:#E8F2FE">decoder</span></font><span style="background-color:#E8F2FE">, GST_STATE_P</span><font face="Courier New"><span style="background-color:#E8F2FE">AUSED</span></font><span style="background-color:#E8F2FE">);</span></font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font face="Courier New" color="#000000"><span style="background-color:#E8F2FE">source</span></font><span style="background-color:#E8F2FE">, GST_STATE_P</span><font face="Courier New"><span style="background-color:#E8F2FE">AUSED
</span></font><span style="background-color:#E8F2FE">);</span></font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font face="Courier New" color="#000000"><span style="background-color:#E8F2FE">sink</span></font><span style="background-color:#E8F2FE">, GST_STATE_PLAYING);</span><font face="Courier New"><span style="background-color:#E8F2FE">
</span></font></font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font color="#000000"><span style="background-color:#E8F2FE">decoder</span></font><span style="background-color:#E8F2FE">, GST_STATE_PLAYING);</span></font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">gst_element_set_state (</span><font face="Courier New" color="#000000"><span style="background-color:#E8F2FE">source</span></font><span style="background-color:#E8F2FE">, GST_STATE_PLAYING);</span></font></div>
<div><font face="Courier New" color="#3F7F5F">&nbsp;</font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">In my pipeline source is the first element, sink is the last element but state change calling sequence is in reverse order, Anybody knows why this is happening?</span></font></div>
<div><font face="Courier New" color="#3F7F5F">&nbsp;</font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">Thanks</span></font></div>
<div><font face="Courier New" color="#3F7F5F"><span style="background-color:#E8F2FE">Purush</span></font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div>&nbsp;</div>
</font>
</body>
</html>