transcodebin: Avoid elements name duplication

By just letting GStreamer choose a good name
This commit is contained in:
Thibault Saunier 2020-03-05 09:17:49 -03:00
parent 020ee62c59
commit 924006279a

View file

@ -150,9 +150,9 @@ _insert_filter (GstTranscodeBin * self, GstPad * sinkpad, GstPad * pad,
GST_OBJECT_UNLOCK (filter);
if (audio)
convert = gst_element_factory_make ("audioconvert", "filter-convert");
convert = gst_element_factory_make ("audioconvert", NULL);
else
convert = gst_element_factory_make ("videoconvert", "filter-convert");
convert = gst_element_factory_make ("videoconvert", NULL);
if (!convert) {
GST_ELEMENT_ERROR (self, CORE, MISSING_PLUGIN,