mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
sctpenc: don't require caps when requesting the pad
They can be set later
This commit is contained in:
parent
fb8f7c25de
commit
f30c8c0c92
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
sctpenc_pad->flushing = FALSE;
|
||||
|
||||
if (!gst_pad_set_active (new_pad, TRUE))
|
||||
|
|
Loading…
Reference in a new issue