add ranks only for plugins who participate in autoplugging. If you have a file that...
authorSteve Baker <steve@stevebaker.org>
Fri, 31 May 2002 08:24:31 +0000 (08:24 +0000)
committerSteve Baker <steve@stevebaker.org>
Fri, 31 May 2002 08:24:31 +0000 (08:24 +0000)
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.

ext/flac/gstflac.c
ext/jpeg/gstjpeg.c
ext/mikmod/gstmikmod.c
gst/auparse/gstauparse.c
gst/avi/gstaviaudiodecoder.c
gst/avi/gstavidemux.c
gst/flx/gstflxdec.c
gst/law/alaw.c
gst/law/mulaw.c
gst/qtdemux/qtdemux.c
gst/wavparse/gstwavparse.c

index 3ab527b..c7bd381 100644 (file)
@@ -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, 
index eec4a45..96c3b58 100644 (file)
@@ -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, 
index 7511157..a123136 100644 (file)
@@ -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 ());
index 9340e6b..930461d 100644 (file)
@@ -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));
index d3b09b1..2fe801a 100644 (file)
@@ -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));
index 77bbcef..0ee9dc0 100644 (file)
@@ -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));
index 1354139..1bb5603 100644 (file)
@@ -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));
index d168b07..f340d13 100644 (file)
@@ -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 ();
index 86bbfea..387d271 100644 (file)
@@ -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 ();
index 968ed1a..5ff0432 100644 (file)
@@ -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));
index 913c411..76547ed 100644 (file)
@@ -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));