splitmuxsink: In async mode, retain previous muxer pad names.

When running in async-finalize mode, request new pads from the muxer
using the same names as old pads, instead of letting the muxer assign
new ones based on the pad template name.
This commit is contained in:
Jan Schmidt 2019-07-26 02:21:59 +10:00 committed by Jan Schmidt
parent 83ef7a6d1c
commit 8ec695e55d

View file

@ -1551,7 +1551,7 @@ relink_context (MqStreamCtx * ctx, GstSplitMuxSink * splitmux)
templ = sinkpad->padtemplate;
newpad =
gst_element_request_pad (splitmux->muxer, templ,
GST_PAD_TEMPLATE_NAME_TEMPLATE (templ), NULL);
GST_PAD_NAME (sinkpad), NULL);
GST_DEBUG_OBJECT (splitmux, "Relinking ctx %p to pad %" GST_PTR_FORMAT, ctx,
newpad);