<div>Hi , </div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Are you handling EOS&nbsp; event properly in your plugin ? <br><br></div>
<div class="gmail_quote">On Fri, Nov 14, 2008 at 10:49 AM, arnabsamanta <span dir="ltr">&lt;<a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><span><font face="Arial" color="#0000ff" size="2">Hi Zhang ,</font></span></div>
<div><span></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for your reply </font></span></div>
<div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Arial" color="#0000ff" size="2">Did you mean the following in the _class_init ( ) ?</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If so then yes, i have done that .</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#000000">static void gst_queue3_class_init (Gstqueue3Class * klass)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</font></font></span></div>
<div><span><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GstElementClass *gstelement_class;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gstelement_class = (GstElementClass *) klass;<br></font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gstelement_class-&gt;change_state = GST_DEBUG_FUNCPTR (gst_queue3_change_state);</span></div>
<div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Arial" color="#0000ff" size="2">}</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span>&nbsp;&nbsp;&nbsp; R<font face="Arial" color="#0000ff" size="2">egards,</font></span></div>
<div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font face="Arial" color="#0000ff" size="2">~Arnab </font>&nbsp;&nbsp;&nbsp; </span></div>
<div>
<div></div>
<div class="Wj3C7c">
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span>&nbsp;&nbsp;&nbsp; <br></span></div>
<blockquote>
<div dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> Eric Zhang [mailto:<a href="mailto:nicolas.m.zhang@gmail.com" target="_blank">nicolas.m.zhang@gmail.com</a>]<br><b>Sent:</b> Friday, November 14, 2008 7:43 AM<br>
<b>To:</b> <a href="mailto:arnabsamanta@tataelxsi.co.in" target="_blank">arnabsamanta@tataelxsi.co.in</a>; Discussion of the development of GStreamer<br><b>Subject:</b> Re: [gst-devel] state change<br><br></font></div>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" target="_blank">arnabsamanta@tataelxsi.co.in</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">&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" target="_blank">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></blockquote>
<p>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.</p>
</div></div></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>