mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-29 20:35:40 +00:00
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:
parent
9ebe4d2395
commit
2e1042ebe8
7 changed files with 7 additions and 0 deletions
|
@ -326,6 +326,7 @@ gst_afparse_plugin_init (GModule *module, GstPlugin *plugin)
|
|||
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (afparse_src_factory));
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (afparse_sink_factory));
|
||||
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
|
||||
|
||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
dec = gst_element_factory_new("gsmdec",GST_TYPE_GSMDEC,
|
||||
&gst_gsmdec_details);
|
||||
g_return_val_if_fail(dec != NULL, FALSE);
|
||||
gst_element_factory_set_rank (dec, GST_ELEMENT_RANK_PRIMARY);
|
||||
|
||||
/* register sink pads */
|
||||
gsmdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
|
||||
|
|
|
@ -561,6 +561,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new ("colorspace", GST_TYPE_COLORSPACE,
|
||||
&colorspace_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 (colorspace_src_template_factory));
|
||||
|
|
|
@ -685,6 +685,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
|
||||
factory = gst_element_factory_new("flxdec", GST_TYPE_FLXDEC, &flxdec_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 (src_video_factory));
|
||||
|
|
|
@ -550,6 +550,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new("modplug",GST_TYPE_MODPLUG,
|
||||
&modplug_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 (modplug_sink_template_factory));
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (modplug_src_template_factory));
|
||||
|
|
|
@ -238,6 +238,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new("qtdemux",GST_TYPE_QTDEMUX,
|
||||
&gst_qtdemux_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_templ));
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_video_templ));
|
||||
|
|
|
@ -49,6 +49,7 @@ conversion utilities");
|
|||
dec = gst_element_factory_new("rtjpegdec",GST_TYPE_RTJPEGDEC,
|
||||
&gst_rtjpegdec_details);
|
||||
g_return_val_if_fail(dec != NULL, FALSE);
|
||||
gst_element_factory_set_rank (dec, GST_ELEMENT_RANK_PRIMARY);
|
||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (dec));
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue