splitmuxsink: Added caption_%u pad template

For closed-caption-enabled muxers (e.g. qtmux)
This commit is contained in:
Vivia Nikolaidou 2018-03-22 18:00:37 +01:00 committed by Vivia Nikolaidou
parent 4253c51c5f
commit 498ebc5503

View file

@ -124,6 +124,11 @@ GST_STATIC_PAD_TEMPLATE ("subtitle_%u",
GST_PAD_SINK, GST_PAD_SINK,
GST_PAD_REQUEST, GST_PAD_REQUEST,
GST_STATIC_CAPS_ANY); GST_STATIC_CAPS_ANY);
static GstStaticPadTemplate caption_sink_template =
GST_STATIC_PAD_TEMPLATE ("caption_%u",
GST_PAD_SINK,
GST_PAD_REQUEST,
GST_STATIC_CAPS_ANY);
static GQuark PAD_CONTEXT; static GQuark PAD_CONTEXT;
@ -212,6 +217,8 @@ gst_splitmux_sink_class_init (GstSplitMuxSinkClass * klass)
&audio_sink_template); &audio_sink_template);
gst_element_class_add_static_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
&subtitle_sink_template); &subtitle_sink_template);
gst_element_class_add_static_pad_template (gstelement_class,
&caption_sink_template);
gstelement_class->change_state = gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_splitmux_sink_change_state); GST_DEBUG_FUNCPTR (gst_splitmux_sink_change_state);