From 8ec695e55d3c84201467f904becaeefbfa4baae0 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 26 Jul 2019 02:21:59 +1000 Subject: [PATCH] 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. --- gst/multifile/gstsplitmuxsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index e7181d5c16..b025e7c8af 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -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);