mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
encodebin: Also use "Formatter"s for container formats
This commit is contained in:
parent
ad22e8bc10
commit
c76a6ef8ea
1 changed files with 7 additions and 0 deletions
|
@ -325,13 +325,20 @@ static void
|
||||||
gst_encode_bin_init (GstEncodeBin * encode_bin)
|
gst_encode_bin_init (GstEncodeBin * encode_bin)
|
||||||
{
|
{
|
||||||
GstPadTemplate *tmpl;
|
GstPadTemplate *tmpl;
|
||||||
|
GList *formatters;
|
||||||
|
|
||||||
encode_bin->muxers =
|
encode_bin->muxers =
|
||||||
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_MUXER,
|
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_MUXER,
|
||||||
GST_RANK_MARGINAL);
|
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 =
|
encode_bin->encoders =
|
||||||
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_ENCODER,
|
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_ENCODER,
|
||||||
GST_RANK_MARGINAL);
|
GST_RANK_MARGINAL);
|
||||||
|
|
||||||
encode_bin->parsers =
|
encode_bin->parsers =
|
||||||
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_PARSER,
|
gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_PARSER,
|
||||||
GST_RANK_MARGINAL);
|
GST_RANK_MARGINAL);
|
||||||
|
|
Loading…
Reference in a new issue