Commit 15d27605 authored by Olivier Crête's avatar Olivier Crête

rtp: Remove caps restrictions from RTP depayloader sink caps

Remove caps restrictions that correspond to the default and are not
required in SDP. With the new usage of having pads require a subset
of the caps, they will make the negotiation fail.
parent 5a9b988b
......@@ -78,7 +78,8 @@ static GstStaticPadTemplate gst_rtp_amr_depay_sink_template =
"media = (string) \"audio\", "
"clock-rate = (int) 8000, "
"encoding-name = (string) \"AMR\", "
"encoding-params = (string) \"1\", "
/* This is the default, so the peer doesn't have to specify it
* "encoding-params = (string) \"1\", " */
/* NOTE that all values must be strings in orde to be able to do SDP <->
* GstCaps mapping. */
"octet-align = (string) \"1\";"
......@@ -97,7 +98,8 @@ static GstStaticPadTemplate gst_rtp_amr_depay_sink_template =
"media = (string) \"audio\", "
"clock-rate = (int) 16000, "
"encoding-name = (string) \"AMR-WB\", "
"encoding-params = (string) \"1\", "
/* This is the default, so the peer doesn't have to specify it
* "encoding-params = (string) \"1\", " */
/* NOTE that all values must be strings in orde to be able to do SDP <->
* GstCaps mapping. */
"octet-align = (string) \"1\";"
......
......@@ -49,8 +49,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"clock-rate = (int) 8000, "
"encoding-name = (string) \"ILBC\", "
"mode = (string) { \"20\", \"30\" }")
"encoding-name = (string) \"ILBC\"")
/* "mode = (string) { \"20\", \"30\" }" */
);
static GstStaticPadTemplate gst_rtp_ilbc_depay_src_template =
......
......@@ -35,7 +35,9 @@ GST_STATIC_PAD_TEMPLATE ("sink",
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"clock-rate = (int) 16000, "
"encoding-name = (string) \"SIREN\", " "dct-length = (int) 320")
"encoding-name = (string) \"SIREN\"")
/* This is the default, so the peer doesn't have to specify it */
/* " "dct-length = (int) 320") */
);
static GstStaticPadTemplate gst_rtp_siren_depay_src_template =
......
......@@ -46,7 +46,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"clock-rate = (int) [6000, 48000], "
"encoding-name = (string) \"SPEEX\", ")
"encoding-name = (string) \"SPEEX\"")
/* "encoding-params = (string) \"1\"" */
);
......
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