<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=582090908-14112008><FONT face=Arial color=#0000ff size=2>Hi
Sudarshan,</FONT></SPAN></DIV>
<DIV><SPAN class=582090908-14112008> <FONT face=Arial
color=#0000ff size=2>No, i am not handling it. </FONT></SPAN></DIV>
<DIV><SPAN class=582090908-14112008><FONT face=Arial color=#0000ff
size=2> my idea was when the end of stream comes from the
filesrc , the pipeline is chsnged to NULL state through PAUSED and READY state.
So i thought i need not handle that. Can you tell me how can i handle it
?</FONT></SPAN></DIV>
<DIV><SPAN class=582090908-14112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=582090908-14112008><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=582090908-14112008> <FONT face=Arial
color=#0000ff size=2>~Arnab </FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> sudarshan bisht
[mailto:bisht.sudarshan@gmail.com]<BR><B>Sent:</B> Friday, November 14, 2008
12:02 PM<BR><B>To:</B> arnabsamanta@tataelxsi.co.in; Discussion of the
development of GStreamer<BR><B>Subject:</B> Re: [gst-devel] state
change<BR><BR></FONT></DIV>
<DIV>Hi , </DIV>
<DIV>
Are you handling EOS 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><<A
href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</A>></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> </DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff
size=2>
Thanks for your reply </FONT></SPAN></DIV>
<DIV><SPAN>
<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> If
so then yes, i have done that .</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff
size=2> <FONT color=#000000>static
void gst_queue3_class_init (Gstqueue3Class *
klass)<BR>
{</FONT></FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial
size=2> <BR>
GstElementClass
*gstelement_class;<BR>
gstelement_class = (GstElementClass *) klass;<BR></FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN>
gstelement_class->change_state = GST_DEBUG_FUNCPTR
(gst_queue3_change_state);</SPAN></DIV>
<DIV><SPAN> <FONT face=Arial
color=#0000ff size=2>}</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN> R<FONT face=Arial color=#0000ff
size=2>egards,</FONT></SPAN></DIV>
<DIV><SPAN> <FONT
face=Arial color=#0000ff size=2>~Arnab </FONT>
</SPAN></DIV>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN> <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>
Did you override the `change_state' function pointer in your element's
`_class_init' function?<BR><BR>Eric Zhang<BR><BR>
<DIV class=gmail_quote>2008/11/13 arnabsamanta <SPAN dir=ltr><<A
href="mailto:arnabsamanta@tataelxsi.co.in"
target=_blank>arnabsamanta@tataelxsi.co.in</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"> Hi
All,<BR> during state change of my plug in i
am calling a function QUEUE3_De_Init()<BR>but its not getting called
.<BR> QUEUE3_De_Init() de-initializes all the
initialized variables in the code.<BR> the
implementation is as such<BR><BR> static
GstStateChangeReturn gst_queue3_change_state (GstElement *
element,<BR>GstStateChange transition)<BR>
{<BR> Gstqueue3 *queue3;<BR>
abuffer = GST_QUEUE3 (element);<BR><BR>
GstStateChangeReturn ret =
GST_STATE_CHANGE_SUCCESS;<BR><BR> switch
(transition) {<BR>
case GST_STATE_CHANGE_NULL_TO_READY:<BR>
break;<BR>
case GST_STATE_CHANGE_READY_TO_PAUSED:<BR>
break;<BR>
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:<BR>
break;<BR>
default:<BR>
break;<BR>
}<BR><BR> ret = GST_ELEMENT_CLASS
(parent_class)->change_state (element,<BR>transition);<BR><BR>
switch (transition) {<BR>
case
GST_STATE_CHANGE_PLAYING_TO_PAUSED:<BR><BR>
break;<BR>
case
GST_STATE_CHANGE_PAUSED_TO_READY:<BR>
break;<BR>
case
GST_STATE_CHANGE_READY_TO_NULL:<BR>
QUEUE3_De_Init();<BR>
break;<BR>
default:<BR>
break;<BR> }<BR><BR><BR>
So,<BR> can please somebody tell
me how and where I can call the function when am<BR>changing the state
of the pipeline ?<BR><BR> Regards,<BR>
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's
challenge<BR>Build the coolest Linux based applications with Moblin SDK
& 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&url=/"
target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&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's
challenge<BR>Build the coolest Linux based applications with Moblin SDK
& 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&url=/"
target=_blank>http://moblin-contest.org/redirect.php?banner_id=100&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></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>
</BODY></HTML>