<div dir="ltr">A playbin i think will try to use the higher rank plugin (amongst all) for a given processing.<br>i think init for the plugin will be called from playbin but playbin can't change the rank. is this understanding correct?<br>
<br>In this case, how can i use "rank changing" to make playbin to select a given plugin?<br><br><br><div class="gmail_quote">On Thu, Aug 28, 2008 at 3:36 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Thu, 2008-08-28 at 14:56 +0530, Sachin Pandhare wrote:<br>
<br>
> is there any method by which i can prioritize plugins?<br>
> e.g. there are X, Y, Z plugins. and i want my playbin to use Y rather<br>
> than other 2.<br>
><br>
> Can i use gst_plugin_feature_set_rank for this?<br>
<br>
</div>Yes. (Or pass the rank you want to gst_element_register in your plugin's<br>
plugin_init function).<br>
<br>
> will it work properly?<br>
<br>
It should if your plugin behaves as expected.<br>
<div class="Ih2E3d"><br>
> as i read from the manual i can set any value apart from<br>
> GST_RANK_NONE, GST_RANK_MARGINAL, GST_RANK_SECONDARY,<br>
> GST_RANK_PRIMARY ?<br>
<br>
</div>Yes, you may use e.g. GST_RANK_SECONDARY+5 or GST_RANK_PRIMARY*2 if you<br>
want, it's just a number. Decoders/demuxers neeed to have at least a<br>
rank of MARGINAL though to be used by playbin/decodebin.<br>
<br>
Cheers<br>
-Tim<br>
<br>
<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">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></div>