You don&#39;t need global variables, put this variable into your element instance that is always passed to the chain function.<br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 8:15 AM, irfanshaikh <span dir="ltr">&lt;<a href="mailto:irfanshaikh@tataelxsi.co.in">irfanshaikh@tataelxsi.co.in</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Since chain function is called repeatedly. I am using Some GstBuffer<br>
X . I am incrementing the position within &quot;X&quot; . So next time when i call<br>
_chain() my data needs to be processed from incremented position of &quot;X&quot;.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Can i use Gstbuffer only as a global variable instead declaring in<br>
_chain().<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;And also tell me whether in general can i use any global variable in<br>
gstreamer plug-in code ??<br>
<br>
<br>
Regards,<br>
Irfan<br>
<br>
<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>Thiago Sousa Santos<br><br>Embedded Systems and Pervasive Computing Lab (Embedded)<br>Center of Electrical Engineering and Informatics (CEEI)<br>Federal University of Campina Grande (UFCG)<br>