From 38c2b3788ecb22d35fdc114b9a30b8beb7905ff5 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 6 Jul 2010 11:58:40 +0200 Subject: [PATCH] gstffmpegmux: Set rank of blacklisted muxers to GST_RANK_NONE https://bugzilla.gnome.org/show_bug.cgi?id=623671 --- ext/ffmpeg/gstffmpegmux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c index c452977785..02e7b83849 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; }