mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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.
This commit is contained in:
parent
9deb3c27ac
commit
b5d8484b0b
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue