<br><div><span class="gmail_quote">On 2/2/07, <b class="gmail_sendername">Wim Taymans</b> &lt;<a href="mailto:wim@fluendo.com">wim@fluendo.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;">
On Fri, 2007-02-02 at 10:02 +0530, Vinayak wrote:<br>&gt; Hi all,<br>&gt; I am implementing the demuxer which will divide the input stream into<br>&gt; multiple.<br>&gt; I wrote a function for request_new_pad which creates a new srcpad
<br>&gt; new_from_template, now this one is associated with my element by<br>&gt; &quot;gst_element_add_pad&quot;. And after that I keep a pointers to alll such<br>&gt; newly created srcpads.<br>&gt;<br>Normally a demuxer will create dynamic pads, based on the contents of
<br>the stream, instead of the app requesting pads.</blockquote><div><br>demuxer is only creating dynamic pads but not based on the contents of the stream, but they are requested&nbsp; while linking the elements . Basically,&nbsp; This demux-elements provides n number of elements a different output-streams, which means there could be three elements connected to this demuxer srcpads. 
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You also need to activate the pads (when requested in &gt;=PAUSED) before<br>adding them to the element so that they can be used for data passing.
</blockquote><div><br>Which exactly state of transitions makes the srcpads on element inactive ? <br>Do I have to make them active by &quot;gst_pad_activate_push(pad, TRUE)&quot; ?<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;gst_pad_push (srcpads[i], outbuf);<br>&gt; }<br><br>The return value of _push should tell you about the reason for the<br>failure. You also need to pass this return value upstream (possibly<br>combining the return values of all pads).
</blockquote><div><br>Yes, I using combined return. But this gst_pad_push never returns after pushing, Infact the data is never pushed &amp; never received on the peer end. It just hangs. <br><br>Thanks, <br>Vinayak <br></div>
</div>