Skip to content
Snippets Groups Projects
Commit 38c2b378 authored by Edward Hervey's avatar Edward Hervey :metal:
Browse files

gstffmpegmux: Set rank of blacklisted muxers to GST_RANK_NONE

https://bugzilla.gnome.org/show_bug.cgi?id=623671
parent 00e17745
No related branches found
No related tags found
No related merge requests found
......@@ -854,6 +854,7 @@ gst_ffmpegmux_register (GstPlugin * plugin)
while (in_plugin) {
gchar *type_name;
gchar *p;
GstRank rank = GST_RANK_MARGINAL;
if ((!strncmp (in_plugin->name, "u16", 3)) ||
(!strncmp (in_plugin->name, "s16", 3)) ||
......@@ -886,6 +887,9 @@ gst_ffmpegmux_register (GstPlugin * plugin)
goto next;
}
if (gst_ffmpegmux_get_replacement (in_plugin->name))
rank = GST_RANK_NONE;
/* FIXME : We need a fast way to know whether we have mappings for this
* muxer type. */
......@@ -909,7 +913,7 @@ gst_ffmpegmux_register (GstPlugin * plugin)
g_type_add_interface_static (type, GST_TYPE_TAG_SETTER, &tag_setter_info);
}
if (!gst_element_register (plugin, type_name, GST_RANK_MARGINAL, type)) {
if (!gst_element_register (plugin, type_name, rank, type)) {
g_free (type_name);
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment