rtppcmApay/depay: Static clock rates on static payloads, dynamic on dynamic

Partially reverts 397dc60b
This commit is contained in:
Olivier Crête 2011-07-14 20:10:02 -04:00
parent 57a832cbb1
commit 87c7f303b0
4 changed files with 10 additions and 10 deletions

View file

@ -45,12 +45,12 @@ static GstStaticPadTemplate gst_rtp_pcma_depay_sink_template =
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"PCMA\";"
"payload = (int) " GST_RTP_PAYLOAD_PCMA_STRING ", "
"clock-rate = (int) 8000, encoding-name = (string) \"PCMA\";"
"application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) " GST_RTP_PAYLOAD_PCMA_STRING ", "
"clock-rate = (int) [1, MAX ]")
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
"clock-rate = (int) [1, MAX ], encoding-name = (string) \"PCMA\"")
);
static GstStaticPadTemplate gst_rtp_pcma_depay_src_template =

View file

@ -47,7 +47,7 @@ static GstStaticPadTemplate gst_rtp_pcma_pay_src_template =
"application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
"clock-rate = (int) 8000, " "encoding-name = (string) \"PCMA\"")
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"PCMA\"")
);
static gboolean gst_rtp_pcma_pay_setcaps (GstBaseRTPPayload * payload,

View file

@ -45,12 +45,12 @@ static GstStaticPadTemplate gst_rtp_pcmu_depay_sink_template =
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"PCMU\";"
"payload = (int) " GST_RTP_PAYLOAD_PCMU_STRING ", "
"encoding-name = (string) \"PCMU\", clock-rate = (int) 8000; "
"application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) " GST_RTP_PAYLOAD_PCMU_STRING ", "
"clock-rate = (int) [1, MAX ]")
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
"encoding-name = (string) \"PCMU\", clock-rate = (int) [1, MAX ]")
);
static GstStaticPadTemplate gst_rtp_pcmu_depay_src_template =

View file

@ -47,7 +47,7 @@ static GstStaticPadTemplate gst_rtp_pcmu_pay_src_template =
"application/x-rtp, "
"media = (string) \"audio\", "
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
"clock-rate = (int) 8000, " "encoding-name = (string) \"PCMU\"")
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"PCMU\"")
);
static gboolean gst_rtp_pcmu_pay_setcaps (GstBaseRTPPayload * payload,