From: Edward Hervey Date: Wed, 22 Dec 2010 17:12:14 +0000 (+0100) Subject: encodebin: Also use "Formatter"s for container formats X-Git-Tag: RELEASE-0.10.32~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c76a6ef8ea47f2517c641da6f117df4feb1afe14;p=platform%2Fupstream%2Fgst-plugins-base.git encodebin: Also use "Formatter"s for container formats --- diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index b6e2dc4..105d841 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);