[gst-devel] state change

Eric Zhang nicolas.m.zhang at gmail.com
Fri Nov 14 03:13:23 CET 2008


Hi, gstreamer-devel:

    Did you override the `change_state' function pointer in your element's
`_class_init' function?

Eric Zhang

2008/11/13 arnabsamanta <arnabsamanta at tataelxsi.co.in>

>  Hi All,
>        during state change of my plug in i am calling a function
> QUEUE3_De_Init()
> but its not getting called .
>        QUEUE3_De_Init() de-initializes all the initialized variables in the
> code.
>        the implementation is as such
>
>         static GstStateChangeReturn gst_queue3_change_state (GstElement *
> element,
> GstStateChange transition)
>        {
>        Gstqueue3 *queue3;
>        abuffer = GST_QUEUE3 (element);
>
>        GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS;
>
>        switch (transition) {
>                case GST_STATE_CHANGE_NULL_TO_READY:
>                        break;
>                case GST_STATE_CHANGE_READY_TO_PAUSED:
>                        break;
>                case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
>                        break;
>                default:
>                        break;
>        }
>
>        ret = GST_ELEMENT_CLASS (parent_class)->change_state (element,
> transition);
>
>        switch (transition) {
>                case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
>
>                        break;
>                case GST_STATE_CHANGE_PAUSED_TO_READY:
>                        break;
>                case GST_STATE_CHANGE_READY_TO_NULL:
>                        QUEUE3_De_Init();
>                        break;
>                default:
>                        break;
>        }
>
>
>        So,
>        can please somebody tell me how and where I can call the function
> when am
> changing the state of the pipeline ?
>
>  Regards,
>        Arnab
>
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081114/81a20543/attachment.htm>


More information about the gstreamer-devel mailing list