Commit fe77e2ef authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

splitmuxsink: Don't use an explicit name for requesting audio pads

... unless the muxer uses the same audio pad template name as
splitmuxsink. We can't request a pad called "audio_0" on a muxer that
wants pads to be "sink_%d".
parent 3d19d6d8
......@@ -1751,6 +1751,7 @@ gst_splitmux_sink_request_new_pad (GstElement * element,
mux_template =
gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS
(splitmux->muxer), "audio");
name = NULL;
}
}
if (mux_template == NULL) {
......@@ -1758,6 +1759,7 @@ gst_splitmux_sink_request_new_pad (GstElement * element,
mux_template =
gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS
(splitmux->muxer), "sink_%d");
name = NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment