mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
splitmuxsink: Support mpegtsmux as a muxer.
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
This commit is contained in:
parent
e7ec32801a
commit
a0182dd943
1 changed files with 6 additions and 0 deletions
|
@ -1158,6 +1158,12 @@ gst_splitmux_sink_request_new_pad (GstElement * element,
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue