mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +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
38b9027f8c
commit
afd592b066
11 changed files with 11 additions and 0 deletions
|
@ -112,6 +112,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
dec = gst_element_factory_new("flacdec",GST_TYPE_FLACDEC,
|
||||
&flacdec_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,
|
||||
|
|
|
@ -86,6 +86,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
dec = gst_element_factory_new("jpegdec",GST_TYPE_JPEGDEC,
|
||||
&gst_jpegdec_details);
|
||||
g_return_val_if_fail(dec != NULL, FALSE);
|
||||
gst_element_factory_set_rank (dec, GST_ELEMENT_RANK_PRIMARY);
|
||||
|
||||
/* register sink pads */
|
||||
jpegdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,
|
||||
|
|
|
@ -611,6 +611,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new("mikmod",GST_TYPE_MIKMOD,
|
||||
&mikmod_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, mikmod_src_factory ());
|
||||
gst_element_factory_add_pad_template (factory, mikmod_sink_factory ());
|
||||
|
|
|
@ -300,6 +300,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new ("auparse", GST_TYPE_AUPARSE,
|
||||
&gst_auparse_details);
|
||||
g_return_val_if_fail (factory != NULL, FALSE);
|
||||
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_SECONDARY);
|
||||
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_factory_templ));
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_factory_templ));
|
||||
|
|
|
@ -177,6 +177,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new ("aviaudiodecoder",GST_TYPE_AVI_AUDIO_DECODER,
|
||||
&gst_avi_audio_decoder_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_audio_templ));
|
||||
|
|
|
@ -1278,6 +1278,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new ("avidemux",GST_TYPE_AVI_DEMUX,
|
||||
&gst_avi_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 (src_audio_templ));
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_video_templ));
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -66,6 +66,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
alawdec_factory = gst_element_factory_new("alawdec",GST_TYPE_ALAWDEC,
|
||||
&alawdec_details);
|
||||
g_return_val_if_fail(alawdec_factory != NULL, FALSE);
|
||||
gst_element_factory_set_rank (alawdec_factory, GST_ELEMENT_RANK_PRIMARY);
|
||||
|
||||
alaw_caps = alaw_factory ();
|
||||
linear_caps = linear_factory ();
|
||||
|
|
|
@ -66,6 +66,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
mulawdec_factory = gst_element_factory_new("mulawdec",GST_TYPE_MULAWDEC,
|
||||
&mulawdec_details);
|
||||
g_return_val_if_fail(mulawdec_factory != NULL, FALSE);
|
||||
gst_element_factory_set_rank (mulawdec_factory, GST_ELEMENT_RANK_PRIMARY);
|
||||
|
||||
mulaw_caps = mulaw_factory ();
|
||||
linear_caps = linear_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));
|
||||
|
|
|
@ -360,6 +360,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
|||
factory = gst_element_factory_new ("wavparse", GST_TYPE_WAVPARSE,
|
||||
&gst_wavparse_details);
|
||||
g_return_val_if_fail(factory != NULL, FALSE);
|
||||
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_SECONDARY);
|
||||
|
||||
/* register src pads */
|
||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_template_factory));
|
||||
|
|
Loading…
Reference in a new issue