Thanks Stefan<br>n i found a way out :D :D<br>we can set the rank of our plugin higher than maximum by passing <br>GST_RANK_PRIMARY+1 so that type find will return this plugin instead :D<br>no uninstalling needed <br><br><br>
<div class="gmail_quote">On Dec 5, 2007 12:05 AM, Stefan Kost &lt;<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>karmendra jain schrieb:<br><div class="Ih2E3d">&gt; Is there no way out apart from uninstalling the previous one ??<br>&gt; i mean .. Can a program be written which searches all the match for a<br>&gt; perticular file
<br>&gt; and returns all &nbsp;ie MAXIMUM MOST_LIKELY etc etc<br>&gt;<br></div>The typefinder that returns the maximum likelyhood detemines the format. Then<br>decodebin will use the element with highest rank that accepts the format.
<br><div class="Ih2E3d"><br>&gt; so that one has option to choose from the list of plugins ??<br>&gt;<br>&gt; Can any core developers look into this .. or any alternate solution ???<br><br></div>I am core-developer :) You could probably remove the unwanted plugins from the
<br>registry (untested).<br><font color="#888888"><br>Stefan<br></font><div class="Ih2E3d"><br>&gt;<br>&gt; On Dec 4, 2007 1:04 AM, Stefan Kost &lt;<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a><br></div>
<div><div></div><div class="Wj3C7c">&gt; &lt;mailto:<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>&gt;&gt; wrote:<br>&gt;<br>&gt; &nbsp; &nbsp; hi,<br>&gt;<br>&gt; &nbsp; &nbsp; karmendra jain schrieb:<br>&gt; &nbsp; &nbsp; &gt; Hey Frans .. things are solved thanks
<br>&gt; &nbsp; &nbsp; &gt; but one more query<br>&gt; &nbsp; &nbsp; &gt; if i have a situation as<br>&gt; &nbsp; &nbsp; &gt; suppose i design my own amrwb decoder &nbsp;(an audio decoder) &nbsp;and this<br>&gt; &nbsp; &nbsp; &gt; decoder typefind is already present<br>&gt; &nbsp; &nbsp; &gt; with option GST_TYPE_FIND_MAXIMUM
<br>&gt; &nbsp; &nbsp; &gt; then how will the gst-typefins return my plugin type ????<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; basically i have designed my own amrwb plugin and i want to make it<br>&gt; &nbsp; &nbsp; &gt; autopluggable<br>&gt; &nbsp; &nbsp; &gt; so i have defined the typefind function in it with
<br>&gt; &nbsp; &nbsp; GST_TYPE_FIND_MAXIMUM<br>&gt; &nbsp; &nbsp; &gt; option<br>&gt; &nbsp; &nbsp; &gt; but gst-typefind still dosen&#39;t return this<br>&gt; &nbsp; &nbsp; &gt; it returns the caps of the original one ..<br>&gt; &nbsp; &nbsp; &gt; any idea on how to achieve this ??
<br>&gt;<br>&gt; &nbsp; &nbsp; You need to make sure the other plugin is not installed. Basically<br>&gt; &nbsp; &nbsp; when you have<br>&gt; &nbsp; &nbsp; several elements with same rank installed you cannot guarantee that<br>&gt; &nbsp; &nbsp; your plugin<br>
&gt; &nbsp; &nbsp; is used. The rank based element selection is to simple for that<br>&gt; &nbsp; &nbsp; scenario.<br>&gt; &nbsp; &nbsp; Unfortunately I am not aware of an easy way to do it better. Ideas<br>&gt; &nbsp; &nbsp; are welcome :)<br>&gt;<br>&gt; &nbsp; &nbsp; Stefan
<br>&gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; On Dec 3, 2007 6:25 PM, karmendra jain &lt; <a href="mailto:karmendra.jain@gmail.com">karmendra.jain@gmail.com</a><br>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:karmendra.jain@gmail.com">
karmendra.jain@gmail.com</a>&gt;<br>&gt; &nbsp; &nbsp; &gt; &lt;mailto: <a href="mailto:karmendra.jain@gmail.com">karmendra.jain@gmail.com</a><br>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:karmendra.jain@gmail.com">karmendra.jain@gmail.com
</a>&gt;&gt;&gt; wrote:<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; Thanks Frans<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; i went thru that ..<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; But my doubt is just in plugin .. not in application side<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; My question is .. wat are the things needed to be done in a plugin
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; to make compatible to autoplugin format<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; i also checked gsttypefindfunctions.c<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; thats pretty clear on how things are done<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; but am still not very clear on how the corresponding plugin to be
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; used is returned ???<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; On Dec 3, 2007 1:29 PM, Frans van Berckel &lt; <a href="mailto:fberckel@xs4all.nl">fberckel@xs4all.nl</a><br>
&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:fberckel@xs4all.nl">fberckel@xs4all.nl</a>&gt;<br></div></div><div><div></div><div class="Wj3C7c">&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:fberckel@xs4all.nl">fberckel@xs4all.nl</a>
 &lt;mailto:<a href="mailto:fberckel@xs4all.nl">fberckel@xs4all.nl</a>&gt;&gt;&gt; wrote:<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Hi Karmendra,<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Do you know the docoderbin and decoderbin2 element?
<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Regards,<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Frans van Berckel<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; On Mon, 2007-12-03 at 12:22 +0530, karmendra jain wrote:
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Hi All<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; I need some pointers regarding the autoplugin feature<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Currently i have designed a plugin<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; say a audio decoder plugin for AMR-NB .. with mime type
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; speech/amr-nb<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; now what all do i need to define and where<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; According to what i understood<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; 1: i need to use type find function
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; 2: i need to define a autoplugger support in my plugin<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Now the Question is<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; 1: how do i define a autopluger .. some sample code or
<br>&gt; &nbsp; &nbsp; docs .. ne<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; one .. plzz<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; 2: how to use the tyfindfunction ...<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Can anyone guide me on this one ???
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Regards<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Karmendra<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; -------------------------------------------------------------------------
<br>&gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; SF.Net email is sponsored by: The Future of Linux Business<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; White Paper<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; from Novell. &nbsp;From the desktop to the data center, Linux
<br>&gt; &nbsp; &nbsp; is going<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; mainstream. &nbsp;Let it simplify your IT future.<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4" target="_blank">http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
</a><br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; _______________________________________________<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; gstreamer-devel mailing list<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net
</a><br>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;mailto: <a href="mailto:gstreamer-devel@lists.sourceforge.net">
gstreamer-devel@lists.sourceforge.net</a><br>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&gt;&gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>&gt; &nbsp; &nbsp; &lt;<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
</a>&gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; -------------------------------------------------------------------------<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; SF.Net email is sponsored by: The Future of Linux Business
<br>&gt; &nbsp; &nbsp; White<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Paper<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; from Novell. &nbsp;From the desktop to the data center, Linux<br>&gt; &nbsp; &nbsp; is going<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; mainstream. &nbsp;Let it simplify your IT future.
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4" target="_blank">http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4</a><br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________
<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; gstreamer-devel mailing list<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">
gstreamer-devel@lists.sourceforge.net</a>&gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">
gstreamer-devel@lists.sourceforge.net</a>&gt;&gt;<br>&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
</a><br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; ------------------------------------------------------------------------<br>&gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; -------------------------------------------------------------------------
<br>&gt; &nbsp; &nbsp; &gt; SF.Net email is sponsored by: The Future of Linux Business White Paper<br>&gt; &nbsp; &nbsp; &gt; from Novell. &nbsp;From the desktop to the data center, Linux is going<br>&gt; &nbsp; &nbsp; &gt; mainstream. &nbsp;Let it simplify your IT future.
<br>&gt; &nbsp; &nbsp; &gt; <a href="http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4" target="_blank">http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4</a><br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; ------------------------------------------------------------------------
<br>&gt;<br>&gt; &nbsp; &nbsp; &gt;<br>&gt; &nbsp; &nbsp; &gt; _______________________________________________<br>&gt; &nbsp; &nbsp; &gt; gstreamer-devel mailing list<br>&gt; &nbsp; &nbsp; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net
</a><br>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>&gt; &nbsp; &nbsp; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>&gt;<br>&gt;<br><br></div></div></blockquote></div><br>