add ranks only for plugins who participate in autoplugging. If you have a file that used to autoplug but doesn't any...

Original commit message from CVS:
add ranks only for plugins who participate in autoplugging.  If you have a file that used to autoplug but doesn't anymore, then let me know or add a rank to the missing element.
This commit is contained in:
Steve Baker 2002-05-31 08:24:29 +00:00
parent eadc5593b3
commit 619f1fdc43

View file

@ -128,6 +128,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
dec = gst_element_factory_new("vorbisdec",GST_TYPE_VORBISDEC,
&vorbisdec_details);
g_return_val_if_fail(dec != NULL, FALSE);
gst_element_factory_set_rank (dec, GST_ELEMENT_RANK_PRIMARY);
/* register sink pads */
dec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,