summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpgsmdepay.c
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-12-01 14:30:01 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-12-01 14:30:01 +0000
commit7a4f8655ce2679dc535d6698630dbc087dc1ce87 (patch)
tree88124114105a1b2dd08b99207689d5313c6c029f /gst/rtp/gstrtpgsmdepay.c
parent0b3776c0b80196d747c351ebf3e165434a38a22b (diff)
Do burger's rename for rtp payloaders and depayloaders
Original commit message from CVS: Do burger's rename for rtp payloaders and depayloaders
Diffstat (limited to 'gst/rtp/gstrtpgsmdepay.c')
-rw-r--r--gst/rtp/gstrtpgsmdepay.c47
1 files changed, 24 insertions, 23 deletions
diff --git a/gst/rtp/gstrtpgsmdepay.c b/gst/rtp/gstrtpgsmdepay.c
index 79a8b7b3..7a0e4d95 100644
--- a/gst/rtp/gstrtpgsmdepay.c
+++ b/gst/rtp/gstrtpgsmdepay.c
@@ -36,14 +36,14 @@ enum
LAST_SIGNAL
};
-static GstStaticPadTemplate gst_rtpgsmparse_src_template =
+static GstStaticPadTemplate gst_rtp_gsm_parse_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-gsm, " "rate = (int) 8000, " "channels = 1")
);
-static GstStaticPadTemplate gst_rtpgsmparse_sink_template =
+static GstStaticPadTemplate gst_rtp_gsm_parse_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
@@ -53,64 +53,65 @@ GST_STATIC_PAD_TEMPLATE ("sink",
"clock-rate = (int) 8000, " "encoding-name = (string) \"GSM\"")
);
-static GstBuffer *gst_rtpgsmparse_process (GstBaseRTPDepayload * depayload,
+static GstBuffer *gst_rtp_gsm_parse_process (GstBaseRTPDepayload * _depayload,
GstBuffer * buf);
-static gboolean gst_rtpgsmparse_setcaps (GstBaseRTPDepayload * depayload,
+static gboolean gst_rtp_gsm_parse_setcaps (GstBaseRTPDepayload * _depayload,
GstCaps * caps);
-GST_BOILERPLATE (GstRTPGSMParse, gst_rtpgsmparse, GstBaseRTPDepayload,
+GST_BOILERPLATE (GstRTPGSMParse, gst_rtp_gsm_parse, GstBaseRTPDepayload,
GST_TYPE_BASE_RTP_DEPAYLOAD);
static void
-gst_rtpgsmparse_base_init (gpointer klass)
+gst_rtp_gsm_parse_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_rtpgsmparse_src_template));
+ gst_static_pad_template_get (&gst_rtp_gsm_parse_src_template));
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtpgsmparse_sink_template));
+ gst_static_pad_template_get (&gst_rtp_gsm_parse_sink_template));
gst_element_class_set_details (element_class, &gst_rtp_gsmparse_details);
}
static void
-gst_rtpgsmparse_class_init (GstRTPGSMParseClass * klass)
+gst_rtp_gsm_parse_class_init (GstRTPGSMParseClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
- GstBaseRTPDepayloadClass *gstbasertpdepayload_class;
+ GstBaseRTPDepayloadClass *gstbasertp_depayload_class;
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
+ gstbasertp_depayload_class = (GstBaseRTPDepayloadClass *) klass;
parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_DEPAYLOAD);
- gstbasertpdepayload_class->process = gst_rtpgsmparse_process;
- gstbasertpdepayload_class->set_caps = gst_rtpgsmparse_setcaps;
+ gstbasertp_depayload_class->process = gst_rtp_gsm_parse_process;
+ gstbasertp_depayload_class->set_caps = gst_rtp_gsm_parse_setcaps;
}
static void
-gst_rtpgsmparse_init (GstRTPGSMParse * rtpgsmparse, GstRTPGSMParseClass * klass)
+gst_rtp_gsm_parse_init (GstRTPGSMParse * rtpgsmparse,
+ GstRTPGSMParseClass * klass)
{
GST_BASE_RTP_DEPAYLOAD (rtpgsmparse)->clock_rate = 8000;
}
static gboolean
-gst_rtpgsmparse_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
+gst_rtp_gsm_parse_setcaps (GstBaseRTPDepayload * _depayload, GstCaps * caps)
{
GstCaps *srccaps;
gboolean ret;
- srccaps = gst_static_pad_template_get_caps (&gst_rtpgsmparse_src_template);
- ret = gst_pad_set_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload), srccaps);
+ srccaps = gst_static_pad_template_get_caps (&gst_rtp_gsm_parse_src_template);
+ ret = gst_pad_set_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (_depayload), srccaps);
gst_caps_unref (srccaps);
return ret;
}
static GstBuffer *
-gst_rtpgsmparse_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
+gst_rtp_gsm_parse_process (GstBaseRTPDepayload * _depayload, GstBuffer * buf)
{
GstBuffer *outbuf = NULL;
gint payload_len;
@@ -118,11 +119,11 @@ gst_rtpgsmparse_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
GST_BUFFER_SIZE (buf),
- gst_rtpbuffer_get_marker (buf),
- gst_rtpbuffer_get_timestamp (buf), gst_rtpbuffer_get_seq (buf));
+ gst_rtp_buffer_get_marker (buf),
+ gst_rtp_buffer_get_timestamp (buf), gst_rtp_buffer_get_seq (buf));
- payload_len = gst_rtpbuffer_get_payload_len (buf);
- payload = gst_rtpbuffer_get_payload (buf);
+ payload_len = gst_rtp_buffer_get_payload_len (buf);
+ payload = gst_rtp_buffer_get_payload (buf);
outbuf = gst_buffer_new_and_alloc (payload_len);
memcpy (GST_BUFFER_DATA (outbuf), payload, payload_len);
@@ -130,7 +131,7 @@ gst_rtpgsmparse_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
}
gboolean
-gst_rtpgsmparse_plugin_init (GstPlugin * plugin)
+gst_rtp_gsm_parse_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpgsmparse",
GST_RANK_NONE, GST_TYPE_RTP_GSM_PARSE);