From ed6561bee67a722eb0073aafb88d69d08688565b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 22 Jan 2013 12:57:41 +0000 Subject: [PATCH] avenc_aac: downgrade to RANK_NONE until it gets fixed Currently just fails to initialize. https://bugzilla.gnome.org/show_bug.cgi?id=691617 --- ext/libav/gstavaudenc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ext/libav/gstavaudenc.c b/ext/libav/gstavaudenc.c index d57db644c5..2db08bb956 100644 --- a/ext/libav/gstavaudenc.c +++ b/ext/libav/gstavaudenc.c @@ -663,6 +663,7 @@ gst_ffmpegaudenc_register (GstPlugin * plugin) in_plugin = av_codec_next (NULL); while (in_plugin) { gchar *type_name; + guint rank; /* Skip non-AV codecs */ if (in_plugin->type != AVMEDIA_TYPE_AUDIO) @@ -724,7 +725,17 @@ gst_ffmpegaudenc_register (GstPlugin * plugin) } } - if (!gst_element_register (plugin, type_name, GST_RANK_SECONDARY, type)) { + switch (in_plugin->id) { + /* avenc_aac: see https://bugzilla.gnome.org/show_bug.cgi?id=691617 */ + case CODEC_ID_AAC: + rank = GST_RANK_NONE; + break; + default: + rank = GST_RANK_SECONDARY; + break; + } + + if (!gst_element_register (plugin, type_name, rank, type)) { g_free (type_name); return FALSE; }