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:31 +00:00
parent b482dd1ab1
commit 8d6dc6a67e
6 changed files with 6 additions and 0 deletions

View file

@ -559,6 +559,7 @@ plugin_init (GModule * module, GstPlugin * plugin)
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_factory));
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_factory));
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));

View file

@ -913,6 +913,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
GST_PAD_TEMPLATE_GET (mad_sink_template_factory));
gst_element_factory_add_pad_template (factory,
GST_PAD_TEMPLATE_GET (mad_src_template_factory));
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));

View file

@ -876,6 +876,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
factory = gst_element_factory_new("mpeg2dec",GST_TYPE_MPEG2DEC,
&gst_mpeg2dec_details);
g_return_val_if_fail(factory != NULL, FALSE);
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_template_factory));
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_template_factory));

View file

@ -516,6 +516,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
factory = gst_element_factory_new ("siddec",GST_TYPE_SIDDEC,
&gst_siddec_details);
g_return_val_if_fail (factory != NULL, FALSE);
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_templ));
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_templ));

View file

@ -328,6 +328,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
factory = gst_element_factory_new("ac3parse",GST_TYPE_AC3PARSE,
&ac3parse_details);
g_return_val_if_fail(factory != NULL, FALSE);
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_SECONDARY);
src_template = src_factory ();
gst_element_factory_add_pad_template (factory, src_template);

View file

@ -855,6 +855,7 @@ gst_mpeg_demux_plugin_init (GModule *module, GstPlugin *plugin)
factory = gst_element_factory_new ("mpegdemux", GST_TYPE_MPEG_DEMUX,
&mpeg_demux_details);
g_return_val_if_fail (factory != NULL, FALSE);
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_factory));
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (video_mpeg1_factory));