From b5d8484b0b0a40fa945f8ed45f2d7adfbfe9c392 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 11 Jun 2019 23:17:30 +1000 Subject: [PATCH] splitmuxsrc: Add video_%d pad template. splitmuxsrc actually supports multiple video pads. Make that clear, especially since it was already creating pads named "video_0" etc. --- gst/multifile/gstsplitmuxsrc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst/multifile/gstsplitmuxsrc.c b/gst/multifile/gstsplitmuxsrc.c index 3e7067d9e6..d829bfa99b 100644 --- a/gst/multifile/gstsplitmuxsrc.c +++ b/gst/multifile/gstsplitmuxsrc.c @@ -75,6 +75,12 @@ GST_STATIC_PAD_TEMPLATE ("video", GST_PAD_SOMETIMES, GST_STATIC_CAPS_ANY); +static GstStaticPadTemplate video_aux_src_template = +GST_STATIC_PAD_TEMPLATE ("video_%u", + GST_PAD_SRC, + GST_PAD_SOMETIMES, + GST_STATIC_CAPS_ANY); + static GstStaticPadTemplate audio_src_template = GST_STATIC_PAD_TEMPLATE ("audio_%u", GST_PAD_SRC, @@ -209,6 +215,8 @@ gst_splitmux_src_class_init (GstSplitMuxSrcClass * klass) gst_element_class_add_static_pad_template (gstelement_class, &video_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &video_aux_src_template); gst_element_class_add_static_pad_template (gstelement_class, &audio_src_template); gst_element_class_add_static_pad_template (gstelement_class,