summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2010-12-22 18:12:14 +0100
committerEdward Hervey <edward.hervey@collabora.co.uk>2010-12-22 18:23:26 +0100
commitc76a6ef8ea47f2517c641da6f117df4feb1afe14 (patch)
tree9b71bbd185390afd85132910f8b20c58ec452154
parentad22e8bc10d91af41f809417d16fb241e7752d36 (diff)
encodebin: Also use "Formatter"s for container formats
-rw-r--r--gst/encoding/gstencodebin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c
index b6e2dc4c8..105d841f0 100644
--- a/gst/encoding/gstencodebin.c
+++ b/gst/encoding/gstencodebin.c
@@ -325,13 +325,20 @@ static void
gst_encode_bin_init (GstEncodeBin * encode_bin)
{
GstPadTemplate *tmpl;
+ GList *formatters;
encode_bin->muxers =
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_MUXER,
GST_RANK_MARGINAL);
+ formatters =
+ gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_FORMATTER,
+ GST_RANK_SECONDARY);
+ encode_bin->muxers = g_list_concat (encode_bin->muxers, formatters);
+
encode_bin->encoders =
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_ENCODER,
GST_RANK_MARGINAL);
+
encode_bin->parsers =
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_PARSER,
GST_RANK_MARGINAL);