<br><div><span class="gmail_quote">On 2/2/07, <b class="gmail_sendername">Wim Taymans</b> <<a href="mailto:wim@fluendo.com">wim@fluendo.com</a>> 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>> Hi all,<br>> I am implementing the demuxer which will divide the input stream into<br>> multiple.<br>> I wrote a function for request_new_pad which creates a new srcpad
<br>> new_from_template, now this one is associated with my element by<br>> "gst_element_add_pad". And after that I keep a pointers to alll such<br>> newly created srcpads.<br>><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 while linking the elements . Basically, 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 >=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 "gst_pad_activate_push(pad, TRUE)" ?<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;">
><br>> gst_pad_push (srcpads[i], outbuf);<br>> }<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 & never received on the peer end. It just hangs. <br><br>Thanks, <br>Vinayak <br></div>
</div>