You don't need global variables, put this variable into your element instance that is always passed to the chain function.

On Tue, Oct 28, 2008 at 8:15 AM, irfanshaikh <> wrote:
Hi all,

       Since chain function is called repeatedly. I am using Some GstBuffer
X . I am incrementing the position within "X" . So next time when i call
_chain() my data needs to be processed from incremented position of "X".
       Can i use Gstbuffer only as a global variable instead declaring in

       And also tell me whether in general can i use any global variable in
gstreamer plug-in code ??


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.

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
gstreamer-devel mailing list

Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)