sctpenc: don't require caps when requesting the pad

They can be set later
This commit is contained in:
Matthew Waters 2018-09-10 23:23:43 +10:00
parent fb8f7c25de
commit f30c8c0c92

View file

@ -421,11 +421,15 @@ gst_sctp_enc_request_new_pad (GstElement * element, GstPadTemplate * template,
sctpenc_pad->stream_id = stream_id;
sctpenc_pad->ppid = DEFAULT_SCTP_PPID;
get_config_from_caps (caps, &sctpenc_pad->ordered, &sctpenc_pad->reliability,
&sctpenc_pad->reliability_param, &new_ppid, &is_new_ppid);
if (caps) {
get_config_from_caps (caps, &sctpenc_pad->ordered,
&sctpenc_pad->reliability, &sctpenc_pad->reliability_param, &new_ppid,
&is_new_ppid);
if (is_new_ppid)
sctpenc_pad->ppid = new_ppid;
}
if (is_new_ppid)
sctpenc_pad->ppid = new_ppid;
sctpenc_pad->flushing = FALSE;
if (!gst_pad_set_active (new_pad, TRUE))