splitmuxsink: Added caption_%u pad template
authorVivia Nikolaidou <vivia@toolsonair.com>
Thu, 22 Mar 2018 17:00:37 +0000 (18:00 +0100)
committerVivia Nikolaidou <vivia@ahiru.eu>
Fri, 11 May 2018 13:39:46 +0000 (16:39 +0300)
For closed-caption-enabled muxers (e.g. qtmux)

gst/multifile/gstsplitmuxsink.c

index debf81f..7846bc5 100644 (file)
@@ -124,6 +124,11 @@ GST_STATIC_PAD_TEMPLATE ("subtitle_%u",
     GST_PAD_SINK,
     GST_PAD_REQUEST,
     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;
 
@@ -212,6 +217,8 @@ gst_splitmux_sink_class_init (GstSplitMuxSinkClass * klass)
       &audio_sink_template);
   gst_element_class_add_static_pad_template (gstelement_class,
       &subtitle_sink_template);
+  gst_element_class_add_static_pad_template (gstelement_class,
+      &caption_sink_template);
 
   gstelement_class->change_state =
       GST_DEBUG_FUNCPTR (gst_splitmux_sink_change_state);