[gst-devel] Can i use global variables in plug-in code

thiagoss thiagossantos at gmail.com
Tue Oct 28 13:53:28 CET 2008


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 <irfanshaikh at tataelxsi.co.in>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
> _chain().
>
>
>        And also tell me whether in general can i use any global variable in
> gstreamer plug-in code ??
>
>
> Regards,
> Irfan
>
>
>
>
> 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
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081028/91fcd58d/attachment.htm>


More information about the gstreamer-devel mailing list