As a fallback, look for a pad template sink_%d on
the muxer when requesting pads, to support mpegtsmux
https://bugzilla.gnome.org/show_bug.cgi?id=752999
gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS
(splitmux->muxer), templ->name_template);
}
+ if (mux_template == NULL) {
+ /* Fallback to find sink pad templates named 'sink_%d' (mpegtsmux) */
+ mux_template =
+ gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS
+ (splitmux->muxer), "sink_%d");
+ }
}
res = gst_element_request_pad (splitmux->muxer, mux_template, name, caps);