diff options
Diffstat (limited to 'gst/rtp/gstrtppcmupay.c')
-rw-r--r-- | gst/rtp/gstrtppcmupay.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/rtp/gstrtppcmupay.c b/gst/rtp/gstrtppcmupay.c index e7a0995..5b555b3 100644 --- a/gst/rtp/gstrtppcmupay.c +++ b/gst/rtp/gstrtppcmupay.c @@ -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, @@ -61,10 +61,10 @@ gst_rtp_pcmu_pay_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_pcmu_pay_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_pcmu_pay_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_pcmu_pay_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_pcmu_pay_src_template); gst_element_class_set_details_simple (element_class, "RTP PCMU payloader", "Codec/Payloader/Network/RTP", "Payload-encodes PCMU audio into a RTP packet", |