[gst-devel] state change

arnabsamanta arnabsamanta at tataelxsi.co.in
Thu Nov 13 10:24:03 CET 2008


 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.




More information about the gstreamer-devel mailing list