mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtppcmApay/depay: Static clock rates on static payloads, dynamic on dynamic
Partially reverts 397dc60b
This commit is contained in:
parent
57a832cbb1
commit
87c7f303b0
4 changed files with 10 additions and 10 deletions
|
@ -45,12 +45,12 @@ static GstStaticPadTemplate gst_rtp_pcma_depay_sink_template =
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("application/x-rtp, "
|
GST_STATIC_CAPS ("application/x-rtp, "
|
||||||
"media = (string) \"audio\", "
|
"media = (string) \"audio\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
"payload = (int) " GST_RTP_PAYLOAD_PCMA_STRING ", "
|
||||||
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"PCMA\";"
|
"clock-rate = (int) 8000, encoding-name = (string) \"PCMA\";"
|
||||||
"application/x-rtp, "
|
"application/x-rtp, "
|
||||||
"media = (string) \"audio\", "
|
"media = (string) \"audio\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_PCMA_STRING ", "
|
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
||||||
"clock-rate = (int) [1, MAX ]")
|
"clock-rate = (int) [1, MAX ], encoding-name = (string) \"PCMA\"")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_pcma_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_pcma_depay_src_template =
|
||||||
|
|
|
@ -47,7 +47,7 @@ static GstStaticPadTemplate gst_rtp_pcma_pay_src_template =
|
||||||
"application/x-rtp, "
|
"application/x-rtp, "
|
||||||
"media = (string) \"audio\", "
|
"media = (string) \"audio\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
"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,
|
static gboolean gst_rtp_pcma_pay_setcaps (GstBaseRTPPayload * payload,
|
||||||
|
|
|
@ -45,12 +45,12 @@ static GstStaticPadTemplate gst_rtp_pcmu_depay_sink_template =
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("application/x-rtp, "
|
GST_STATIC_CAPS ("application/x-rtp, "
|
||||||
"media = (string) \"audio\", "
|
"media = (string) \"audio\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
"payload = (int) " GST_RTP_PAYLOAD_PCMU_STRING ", "
|
||||||
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"PCMU\";"
|
"encoding-name = (string) \"PCMU\", clock-rate = (int) 8000; "
|
||||||
"application/x-rtp, "
|
"application/x-rtp, "
|
||||||
"media = (string) \"audio\", "
|
"media = (string) \"audio\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_PCMU_STRING ", "
|
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
||||||
"clock-rate = (int) [1, MAX ]")
|
"encoding-name = (string) \"PCMU\", clock-rate = (int) [1, MAX ]")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_pcmu_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_pcmu_depay_src_template =
|
||||||
|
|
|
@ -47,7 +47,7 @@ static GstStaticPadTemplate gst_rtp_pcmu_pay_src_template =
|
||||||
"application/x-rtp, "
|
"application/x-rtp, "
|
||||||
"media = (string) \"audio\", "
|
"media = (string) \"audio\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
"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,
|
static gboolean gst_rtp_pcmu_pay_setcaps (GstBaseRTPPayload * payload,
|
||||||
|
|
Loading…
Reference in a new issue