From 8d645e1a69721856d1e7bb736801039827356ad1 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 8 Sep 2020 20:45:53 -0300 Subject: [PATCH] encodebin: Be less restrictive on muxer caps when preset name is specified This way the user can simply define its caps by only providing the structure name which is what we do in the encoding profile deserialization function for example. Part-of: --- gst/encoding/gstencodebin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index b8fb740503..aa4837bff9 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -2008,7 +2008,8 @@ _get_muxer (GstEncodeBin * ebin) GST_DEBUG ("Getting list of muxers for format %" GST_PTR_FORMAT, format); muxers = - gst_element_factory_list_filter (ebin->muxers, format, GST_PAD_SRC, TRUE); + gst_element_factory_list_filter (ebin->muxers, format, GST_PAD_SRC, + !preset_name); formatters = gst_element_factory_list_filter (ebin->formatters, format, GST_PAD_SRC,