<div dir="ltr"><div>Hi Arnb ,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Actually gst_plugin_src_activate_push function is used to activate src pad in push mode , that means src pad can only push the data to next element , and&nbsp;&nbsp;gst_plugin_chain funcion does all the processing and &nbsp;pushes the data to next element using gst_pad_push funcion &nbsp;.</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; So gst_plugin_src_activate_push will be called only once in order to set some variables but gst_plugin_chain will be called till the data is there in the file .&nbsp; And by default filesrc element sends&nbsp;4096 bytes&nbsp;of data eveytime&nbsp;to next element . but that can be changed using &quot;blocksize&quot; property of filesrc &nbsp;. &nbsp;</div>

<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div class="gmail_quote">On Mon, Oct 6, 2008 at 12:39 PM, arnabsamanta <span dir="ltr">&lt;<a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&nbsp;Hi ,<br>&nbsp; &nbsp; &nbsp; &nbsp;there are two functions in the queue element namely<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gst_queue_chain() which does all the data processing<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gst_queue_src_activate_push() which pushes away the data out of the<br>plugin<br><br>&nbsp; &nbsp; &nbsp; &nbsp;Can any body tell me how exactly these two functions - gst_plugin_chain()<br>and gst_plugin_src_activate_push() will be &nbsp; &nbsp; &nbsp;called ?<br>
<br>&nbsp; &nbsp; &nbsp; &nbsp;both the functions are declared in the plugin_init ()<br><br>&nbsp; &nbsp; &nbsp; &nbsp;is it like once the chain() is called and then the src_activate_push () is<br>called and the loop gets repeated with chain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;() and src_activate_push()<br>
alternately ? but then i added a counter in both these functions and<br>displayed once they are called and observed that only the chain() function<br>is displayed and not the &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;other one in the src_activate_push<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;or,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;the chain() function is called and after its data processing is<br>completely over , then the &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;src_activate_push () is called ? if this is<br>
the case , then how the data is sent to the source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;element from the<br>filesrc element which send 4K bytes each time ? because to my understanding<br>if the &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;chain() is executed at a time , then the entire file has to be<br>
read and stord at once , which is &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; quite not possible. am i right ?<br><br><br>&nbsp; &nbsp; &nbsp; &nbsp;I am unable to understand the squence by which the gstreamer core calls the<br>functions declared in the init()<br>
<br><br>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.<br>
<br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer&#39;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">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">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br></div>