Hi, gstreamer-devel:<br><br>&nbsp;&nbsp;&nbsp; Did you override the `change_state&#39; function pointer in your element&#39;s `_class_init&#39; function?<br><br>Eric Zhang<br><br><div class="gmail_quote">2008/11/13 arnabsamanta <span dir="ltr">&lt;<a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;Hi All,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;during state change of my plug in i am calling a function QUEUE3_De_Init()<br>
but its not getting called .<br>
 &nbsp; &nbsp; &nbsp; &nbsp;QUEUE3_De_Init() de-initializes all the initialized variables in the code.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;the implementation is as such<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; static GstStateChangeReturn gst_queue3_change_state (GstElement * element,<br>
GstStateChange transition)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Gstqueue3 *queue3;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;abuffer = GST_QUEUE3 (element);<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;switch (transition) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case GST_STATE_CHANGE_NULL_TO_READY:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case GST_STATE_CHANGE_READY_TO_PAUSED:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case GST_STATE_CHANGE_PAUSED_TO_PLAYING:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;ret = GST_ELEMENT_CLASS (parent_class)-&gt;change_state (element,<br>
transition);<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;switch (transition) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case GST_STATE_CHANGE_PLAYING_TO_PAUSED:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case GST_STATE_CHANGE_PAUSED_TO_READY:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case GST_STATE_CHANGE_READY_TO_NULL:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QUEUE3_De_Init();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;So,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;can please somebody tell me how and where I can call the function when am<br>
changing the state of the pipeline ?<br>
<br>
&nbsp;Regards,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Arnab<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>