summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2010-07-06 11:58:40 +0200
committerEdward Hervey <bilboed@bilboed.com>2010-07-06 14:02:09 +0200
commit38c2b3788ecb22d35fdc114b9a30b8beb7905ff5 (patch)
tree914520169ab1fcf7a06234eab9ea1e2f8d5eec4d
parent00e177458cec1f0ab80299719aa2107d0c3e5aeb (diff)
gstffmpegmux: Set rank of blacklisted muxers to GST_RANK_NONE
https://bugzilla.gnome.org/show_bug.cgi?id=623671
-rw-r--r--ext/ffmpeg/gstffmpegmux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c
index c452977..02e7b83 100644
--- a/ext/ffmpeg/gstffmpegmux.c
+++ b/ext/ffmpeg/gstffmpegmux.c
@@ -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;
}