/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
- * Copyright (C) <2005> Edgard Lima <edgard.lima@indt.org.br>
+ * Copyright (C) <2005> Edgard Lima <edgard.lima@gmail.com>
* Copyright (C) <2005> Nokia Corporation <kai.vehmanen@nokia.com>
*
* This library is free software; you can redistribute it and/or
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
gstelement_class = (GstElementClass *) klass;
gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcma_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcma_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcma_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcma_pay_src_template);
- gst_element_class_set_details_simple (gstelement_class, "RTP PCMA payloader",
+ gst_element_class_set_static_metadata (gstelement_class, "RTP PCMA payloader",
"Codec/Payloader/Network/RTP",
"Payload-encodes PCMA audio into a RTP packet",
- "Edgard Lima <edgard.lima@indt.org.br>");
+ "Edgard Lima <edgard.lima@gmail.com>");
gstrtpbasepayload_class->set_caps = gst_rtp_pcma_pay_setcaps;
}
rtpbaseaudiopayload = GST_RTP_BASE_AUDIO_PAYLOAD (rtppcmapay);
+ GST_RTP_BASE_PAYLOAD (rtppcmapay)->pt = GST_RTP_PAYLOAD_PCMA;
GST_RTP_BASE_PAYLOAD (rtppcmapay)->clock_rate = 8000;
/* tell rtpbaseaudiopayload that this is a sample based codec */
{
gboolean res;
- payload->pt = GST_RTP_PAYLOAD_PCMA;
-
- gst_rtp_base_payload_set_options (payload, "audio", FALSE, "PCMA", 8000);
+ gst_rtp_base_payload_set_options (payload, "audio",
+ payload->pt != GST_RTP_PAYLOAD_PCMA, "PCMA", 8000);
res = gst_rtp_base_payload_set_outcaps (payload, NULL);
return res;