Add ranks to various muxers and encoders in -bad
authorChristian Schaller <christian.schaller@collabora.co.uk>
Thu, 7 May 2009 16:53:42 +0000 (17:53 +0100)
committerChristian Schaller <christian.schaller@collabora.co.uk>
Thu, 7 May 2009 16:53:42 +0000 (17:53 +0100)
ext/faac/gstfaac.c
ext/mpeg2enc/gstmpeg2enc.cc
ext/x264/gstx264enc.c
gst/flv/gstflvdemux.c
gst/mxf/mxf.c
gst/qtmux/gstqtmux.c

index 638e65b..0dc8a42 100644 (file)
@@ -806,7 +806,8 @@ gst_faac_change_state (GstElement * element, GstStateChange transition)
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
-  return gst_element_register (plugin, "faac", GST_RANK_NONE, GST_TYPE_FAAC);
+  return gst_element_register (plugin, "faac", GST_RANK_SECONDARY,
+      GST_TYPE_FAAC);
 }
 
 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
index 21be81f..64008b1 100644 (file)
@@ -717,7 +717,7 @@ plugin_init (GstPlugin * plugin)
   mjpeg_default_handler_verbosity (0);
 
   return gst_element_register (plugin, "mpeg2enc",
-      GST_RANK_NONE, GST_TYPE_MPEG2ENC);
+      GST_RANK_SECONDARY, GST_TYPE_MPEG2ENC);
 }
 
 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
index 37f53cc..fcafdd3 100644 (file)
@@ -1303,7 +1303,7 @@ plugin_init (GstPlugin * plugin)
       "h264 encoding element");
 
   return gst_element_register (plugin, "x264enc",
-      GST_RANK_NONE, GST_TYPE_X264_ENC);
+      GST_RANK_PRIMARY, GST_TYPE_X264_ENC);
 }
 
 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
index f31a22e..5856e7a 100644 (file)
@@ -1311,7 +1311,7 @@ plugin_init (GstPlugin * plugin)
 
   if (!gst_element_register (plugin, "flvdemux", GST_RANK_PRIMARY,
           gst_flv_demux_get_type ()) ||
-      !gst_element_register (plugin, "flvmux", GST_RANK_NONE,
+      !gst_element_register (plugin, "flvmux", GST_RANK_PRIMARY,
           gst_flv_mux_get_type ()))
     return FALSE;
 
index c1a0a71..7469317 100644 (file)
@@ -71,7 +71,8 @@ plugin_init (GstPlugin * plugin)
 
   if (!gst_element_register (plugin, "mxfdemux", GST_RANK_PRIMARY,
           GST_TYPE_MXF_DEMUX) ||
-      !gst_element_register (plugin, "mxfmux", GST_RANK_NONE, GST_TYPE_MXF_MUX))
+      !gst_element_register (plugin, "mxfmux", GST_RANK_PRIMARY,
+          GST_TYPE_MXF_MUX))
     return FALSE;
 
   return TRUE;
index f3e85f5..b0df9d7 100644 (file)
@@ -1886,7 +1886,7 @@ gst_qt_mux_register (GstPlugin * plugin)
     g_type_set_qdata (type, GST_QT_MUX_PARAMS_QDATA, (gpointer) params);
     g_type_add_interface_static (type, GST_TYPE_TAG_SETTER, &tag_setter_info);
 
-    if (!gst_element_register (plugin, prop->name, GST_RANK_NONE, type))
+    if (!gst_element_register (plugin, prop->name, GST_RANK_PRIMARY, type))
       return FALSE;
 
     i++;