From fe77e2efe8467777bddb1a992289d88103d7e331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 20 Apr 2017 13:16:24 +0100 Subject: [PATCH] splitmuxsink: Don't use an explicit name for requesting audio pads ... unless the muxer uses the same audio pad template name as splitmuxsink. We can't request a pad called "audio_0" on a muxer that wants pads to be "sink_%d". --- gst/multifile/gstsplitmuxsink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index d98a984261..a7d04668d8 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -1751,6 +1751,7 @@ gst_splitmux_sink_request_new_pad (GstElement * element, mux_template = gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (splitmux->muxer), "audio"); + name = NULL; } } if (mux_template == NULL) { @@ -1758,6 +1759,7 @@ gst_splitmux_sink_request_new_pad (GstElement * element, mux_template = gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (splitmux->muxer), "sink_%d"); + name = NULL; } }