mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
pcmudepay: allow variable sample rate
This commit is contained in:
parent
f335fee99e
commit
397dc60b71
1 changed files with 4 additions and 3 deletions
|
@ -46,18 +46,19 @@ static GstStaticPadTemplate gst_rtp_pcmu_depay_sink_template =
|
||||||
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_DYNAMIC_STRING ", "
|
||||||
"clock-rate = (int) 8000, " "encoding-name = (string) \"PCMU\";"
|
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"PCMU\";"
|
||||||
"application/x-rtp, "
|
"application/x-rtp, "
|
||||||
"media = (string) \"audio\", "
|
"media = (string) \"audio\", "
|
||||||
"payload = (int) " GST_RTP_PAYLOAD_PCMU_STRING ", "
|
"payload = (int) " GST_RTP_PAYLOAD_PCMU_STRING ", "
|
||||||
"clock-rate = (int) 8000")
|
"clock-rate = (int) [1, MAX ]")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_pcmu_depay_src_template =
|
static GstStaticPadTemplate gst_rtp_pcmu_depay_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-mulaw, channels = (int) 1, rate = (int) 8000")
|
GST_STATIC_CAPS ("audio/x-mulaw, "
|
||||||
|
"channels = (int) 1, rate = (int) [1, MAX ]")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstBuffer *gst_rtp_pcmu_depay_process (GstBaseRTPDepayload * depayload,
|
static GstBuffer *gst_rtp_pcmu_depay_process (GstBaseRTPDepayload * depayload,
|
||||||
|
|
Loading…
Reference in a new issue