<div dir="ltr"><div>Hi Arnab, </div>
<div>&nbsp;</div>
<div>Check your pluginClassStructure....see in your class do u have src and sink pad pointer defined...</div>
<div>I am not too sure but this might cause the proble.....please cross check...</div>
<div>&nbsp;</div>
<div>Good luck</div>
<div>Manish<br><br></div>
<div class="gmail_quote">On Wed, Oct 8, 2008 at 12:28 PM, ved kpl <span dir="ltr">&lt;<a href="mailto:ved.kpl@gmail.com">ved.kpl@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>You can refer to any existing plugins. eg gstqueue.c in<br>gstreamer/plugins/elements<br><br>Ved<br>
<br>On Wed, Oct 8, 2008 at 12:09 PM, arnabsamanta<br>
<div>
<div></div>
<div class="Wj3C7c">&lt;<a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>&gt; wrote:<br>&gt; Hi ved,<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;Thanks for the reply.<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;I have included the following lines in my _init() already. Please tell me<br>
&gt; if i need to add any thing more .<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;static void gst_queue3_init (GstQueue3 *queue3, GstQueue3Class * gclass)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;{<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;queue3-&gt;srcpad = gst_pad_new_from_template ((void *)&amp;src_factory, &quot;src&quot; );<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gst_element_add_pad (GST_ELEMENT (queue3), queue3-&gt;srcpad);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;And i have figured out the rason for the segmantation error.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;the macro assertion : GST_IS_PAD(pad) is failing in all the functions . My<br>&gt; understanding is its due to the fact that &nbsp; &nbsp; &nbsp; the pad is not created. but am<br>&gt; not sure as i dint get any documentataion of the macro.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;So is my understanding correct ? if wrong , then please correct me.<br>&gt;<br>&gt; &nbsp;Regards,<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;~Arnab<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: ved kpl [mailto:<a href="mailto:ved.kpl@gmail.com">ved.kpl@gmail.com</a>]<br>
&gt; Sent: Wednesday, October 08, 2008 11:29 AM<br>&gt; To: <a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>; Discussion of the development of<br>&gt; GStreamer<br>&gt; Subject: Re: [gst-devel] querry: pad error while inspecting a plugin<br>
&gt;<br>&gt;<br>&gt; Hi<br>&gt;<br>&gt; You are creating the pad dynamically , then. If you want the pads to<br>&gt; be &quot;ALWAYS&quot; ,<br>&gt; create them in your *queue3_init().<br>&gt;<br>&gt; Ved<br>&gt;<br>&gt; On Wed, Oct 8, 2008 at 10:11 AM, arnabsamanta<br>
&gt; &lt;<a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>&gt; wrote:<br>&gt;&gt; Hi ,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;I have written a plug-in and have successfully installed it in the<br>&gt;&gt; gstreamer package available in my system.<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;when am running gst-inspect , am able to view my plugin queue3.<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;when am running the command<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gst-inspect queue3<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;I am getting the following displayed<br>
&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Pad Templates:<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;SRC template: &#39;src&#39;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Availability: Always<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Capabilities:<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;ANY<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Element Flags:<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;no flags set<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Element Implementation:<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Has change_state() function: gst_queue3_change_state<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Has custom save_thyself() function: gst_element_save_thyself<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Has custom restore_thyself() function: gst_element_restore_thyself<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Element has no clocking capabilities.<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Element has no indexing capabilities.<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Element has no URI handling capabilities.<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Pads:<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;none<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;My concern is why the src pad is not shown here ?<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;to my understandings its not created. If so what am i supposed to<br>&gt; do to<br>&gt;&gt; irradicate this error ?<br>
&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;and the last error am getting &nbsp;is<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (gst-inspect-0.10:15886): GLib-GObject-WARNING **: invalid<br>&gt; class cast<br>&gt;&gt; from (NULL) pointer to `GObject&#39;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Segmentation fault<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Can some one pleasse tell me what is the problem and how can i<br>&gt; solve it ?<br>&gt;&gt;<br>&gt;&gt; &nbsp;Thanks and Regards,<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;~Arnab<br>
&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; The information contained in this electronic message and any attachments<br>&gt; to this message are intended for the exclusive use of the addressee(s) and<br>
&gt; may contain proprietary, confidential or privileged information. If you are<br>&gt; not the intended recipient, you should not disseminate, distribute or copy<br>&gt; this e-mail. Please notify the sender immediately and destroy all copies of<br>
&gt; this message and any attachments contained in it.<br>&gt;&gt;<br>&gt;&gt; -------------------------------------------------------------------------<br>&gt;&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s<br>
&gt; challenge<br>&gt;&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great<br>&gt; prizes<br>&gt;&gt; Grand prize is a trip for two to an Open Source event anywhere in the<br>&gt; world<br>&gt;&gt; <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>
&gt;&gt; _______________________________________________<br>&gt;&gt; gstreamer-devel mailing list<br>&gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt;<br>&gt;<br>&gt;<br>&gt; 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>
&gt;<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>
</div></div></blockquote></div><br></div>