Commit e7f91998 authored by Stefan Kost's avatar Stefan Kost

gst/rtp/: Remove copy/paste unused code (property setters and getter) found by...

gst/rtp/: Remove copy/paste unused code (property setters and getter) found by the coverage suite (yay, saves ~20k on...

Original commit message from CVS:
* gst/rtp/gstasteriskh263.c:
* gst/rtp/gstrtpL16depay.c:
* gst/rtp/gstrtpac3depay.c:
* gst/rtp/gstrtpamrpay.c:
* gst/rtp/gstrtpdepay.c:
* gst/rtp/gstrtpgsmdepay.c:
* gst/rtp/gstrtph263depay.c:
* gst/rtp/gstrtph263pdepay.c:
* gst/rtp/gstrtph263ppay.c:
* gst/rtp/gstrtph264depay.c:
* gst/rtp/gstrtph264pay.c:
* gst/rtp/gstrtpmp2tdepay.c:
* gst/rtp/gstrtpmp4adepay.c:
* gst/rtp/gstrtpmp4gdepay.c:
* gst/rtp/gstrtpmp4gpay.c:
* gst/rtp/gstrtpmp4vdepay.c:
* gst/rtp/gstrtpmpadepay.c:
* gst/rtp/gstrtpmpvdepay.c:
* gst/rtp/gstrtpsv3vdepay.c:
* gst/rtp/gstrtptheoradepay.c:
* gst/rtp/gstrtptheorapay.c:
* gst/rtp/gstrtpvorbisdepay.c:
* gst/rtp/gstrtpvorbispay.c:
Remove copy/paste unused code (property setters and getter) found by
the coverage suite (yay, saves ~20k on disk).
parent a895112c
2008-01-09 Stefan Kost <ensonic@users.sf.net>
* gst/rtp/gstasteriskh263.c:
* gst/rtp/gstrtpL16depay.c:
* gst/rtp/gstrtpac3depay.c:
* gst/rtp/gstrtpamrpay.c:
* gst/rtp/gstrtpdepay.c:
* gst/rtp/gstrtpgsmdepay.c:
* gst/rtp/gstrtph263depay.c:
* gst/rtp/gstrtph263pdepay.c:
* gst/rtp/gstrtph263ppay.c:
* gst/rtp/gstrtph264depay.c:
* gst/rtp/gstrtph264pay.c:
* gst/rtp/gstrtpmp2tdepay.c:
* gst/rtp/gstrtpmp4adepay.c:
* gst/rtp/gstrtpmp4gdepay.c:
* gst/rtp/gstrtpmp4gpay.c:
* gst/rtp/gstrtpmp4vdepay.c:
* gst/rtp/gstrtpmpadepay.c:
* gst/rtp/gstrtpmpvdepay.c:
* gst/rtp/gstrtpsv3vdepay.c:
* gst/rtp/gstrtptheoradepay.c:
* gst/rtp/gstrtptheorapay.c:
* gst/rtp/gstrtpvorbisdepay.c:
* gst/rtp/gstrtpvorbispay.c:
Remove copy/paste unused code (property setters and getter) found by
the coverage suite (yay, saves ~20k on disk).
2008-01-08 Tim-Philipp Müller <tim at centricular dot net>
* gst/matroska/matroska-mux.c: (COMMON_VIDEO_CAPS_NO_FRAMERATE),
......
......@@ -54,19 +54,6 @@ GST_ELEMENT_DETAILS ("RTP packet parser",
"Extracts H263 video from RTP and encodes in Asterisk H263 format",
"Neil Stratford <neils@vipadia.com>");
/* Asteriskh263 signals and args */
enum
{
/* FILL ME */
LAST_SIGNAL
};
enum
{
ARG_0,
ARG_FREQUENCY
};
static GstStaticPadTemplate gst_asteriskh263_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
......@@ -91,11 +78,6 @@ static void gst_asteriskh263_finalize (GObject * object);
static GstFlowReturn gst_asteriskh263_chain (GstPad * pad, GstBuffer * buffer);
static void gst_asteriskh263_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
static void gst_asteriskh263_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
static GstStateChangeReturn gst_asteriskh263_change_state (GstElement *
element, GstStateChange transition);
......@@ -152,9 +134,6 @@ gst_asteriskh263_class_init (GstAsteriskh263Class * klass)
gobject_class->finalize = gst_asteriskh263_finalize;
gobject_class->set_property = gst_asteriskh263_set_property;
gobject_class->get_property = gst_asteriskh263_get_property;
gstelement_class->change_state = gst_asteriskh263_change_state;
}
......@@ -251,36 +230,6 @@ bad_packet:
}
}
static void
gst_asteriskh263_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstAsteriskh263 *asteriskh263;
asteriskh263 = GST_ASTERISK_H263 (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
gst_asteriskh263_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
GstAsteriskh263 *asteriskh263;
asteriskh263 = GST_ASTERISK_H263 (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static GstStateChangeReturn
gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
{
......@@ -290,8 +239,6 @@ gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
asteriskh263 = GST_ASTERISK_H263 (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
gst_adapter_clear (asteriskh263->adapter);
break;
......@@ -301,12 +248,14 @@ gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
case GST_STATE_CHANGE_READY_TO_NULL:
break;
default:
break;
}
/*
switch (transition) {
case GST_STATE_CHANGE_READY_TO_NULL:
break;
default:
break;
}
*/
return ret;
}
......
......@@ -36,17 +36,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
"Extracts raw audio from RTP packets",
"Zeeshan Ali <zak147@yahoo.com>," "Wim Taymans <wim@fluendo.com>");
/* RtpL16Depay signals and args */
enum
{
LAST_SIGNAL
};
enum
{
ARG_0,
};
static GstStaticPadTemplate gst_rtp_L16_depay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
......@@ -89,11 +78,6 @@ static gboolean gst_rtp_L16_depay_setcaps (GstBaseRTPDepayload * depayload,
static GstBuffer *gst_rtp_L16_depay_process (GstBaseRTPDepayload * depayload,
GstBuffer * buf);
static void gst_rtp_L16_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
static void gst_rtp_L16_depay_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
static GstStateChangeReturn gst_rtp_L16_depay_change_state (GstElement *
element, GstStateChange transition);
......@@ -113,19 +97,14 @@ gst_rtp_L16_depay_base_init (gpointer klass)
static void
gst_rtp_L16_depay_class_init (GstRtpL16DepayClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
GstBaseRTPDepayloadClass *gstbasertpdepayload_class;
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
parent_class = g_type_class_peek_parent (klass);
gobject_class->set_property = gst_rtp_L16_depay_set_property;
gobject_class->get_property = gst_rtp_L16_depay_get_property;
gstelement_class->change_state = gst_rtp_L16_depay_change_state;
gstbasertpdepayload_class->set_caps = gst_rtp_L16_depay_setcaps;
......@@ -139,6 +118,7 @@ static void
gst_rtp_L16_depay_init (GstRtpL16Depay * rtpL16depay,
GstRtpL16DepayClass * klass)
{
/* needed because of GST_BOILERPLATE */
}
static gint
......@@ -250,36 +230,6 @@ empty_packet:
}
}
static void
gst_rtp_L16_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstRtpL16Depay *rtpL16depay;
rtpL16depay = GST_RTP_L16_DEPAY (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
gst_rtp_L16_depay_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
GstRtpL16Depay *rtpL16depay;
rtpL16depay = GST_RTP_L16_DEPAY (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static GstStateChangeReturn
gst_rtp_L16_depay_change_state (GstElement * element, GstStateChange transition)
{
......@@ -288,21 +238,25 @@ gst_rtp_L16_depay_change_state (GstElement * element, GstStateChange transition)
rtpL16depay = GST_RTP_L16_DEPAY (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
break;
default:
break;
}
/*
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
break;
default:
break;
}
*/
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
case GST_STATE_CHANGE_READY_TO_NULL:
break;
default:
break;
}
/*
switch (transition) {
case GST_STATE_CHANGE_READY_TO_NULL:
break;
default:
break;
}
*/
return ret;
}
......
......@@ -36,18 +36,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
"Extracts AC3 audio from RTP packets (RFC 4184)",
"Wim Taymans <wim@fluendo.com>");
/* RtpAC3Depay signals and args */
enum
{
/* FILL ME */
LAST_SIGNAL
};
enum
{
ARG_0,
};
static GstStaticPadTemplate gst_rtp_ac3_depay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
......@@ -74,11 +62,6 @@ static gboolean gst_rtp_ac3_depay_setcaps (GstBaseRTPDepayload * depayload,
static GstBuffer *gst_rtp_ac3_depay_process (GstBaseRTPDepayload * depayload,
GstBuffer * buf);
static void gst_rtp_ac3_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
static void gst_rtp_ac3_depay_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
static GstStateChangeReturn gst_rtp_ac3_depay_change_state (GstElement *
element, GstStateChange transition);
......@@ -98,19 +81,14 @@ gst_rtp_ac3_depay_base_init (gpointer klass)
static void
gst_rtp_ac3_depay_class_init (GstRtpAC3DepayClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
GstBaseRTPDepayloadClass *gstbasertpdepayload_class;
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
parent_class = g_type_class_peek_parent (klass);
gobject_class->set_property = gst_rtp_ac3_depay_set_property;
gobject_class->get_property = gst_rtp_ac3_depay_get_property;
gstelement_class->change_state = gst_rtp_ac3_depay_change_state;
gstbasertpdepayload_class->set_caps = gst_rtp_ac3_depay_setcaps;
......@@ -124,6 +102,7 @@ static void
gst_rtp_ac3_depay_init (GstRtpAC3Depay * rtpac3depay,
GstRtpAC3DepayClass * klass)
{
/* needed because of GST_BOILERPLATE */
}
static gboolean
......@@ -261,36 +240,6 @@ empty_packet:
}
}
static void
gst_rtp_ac3_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstRtpAC3Depay *rtpac3depay;
rtpac3depay = GST_RTP_AC3_DEPAY (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
gst_rtp_ac3_depay_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
GstRtpAC3Depay *rtpac3depay;
rtpac3depay = GST_RTP_AC3_DEPAY (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static GstStateChangeReturn
gst_rtp_ac3_depay_change_state (GstElement * element, GstStateChange transition)
{
......@@ -299,21 +248,25 @@ gst_rtp_ac3_depay_change_state (GstElement * element, GstStateChange transition)
rtpac3depay = GST_RTP_AC3_DEPAY (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
break;
default:
break;
}
/*
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
break;
default:
break;
}
*/
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
case GST_STATE_CHANGE_READY_TO_NULL:
break;
default:
break;
}
/*
switch (transition) {
case GST_STATE_CHANGE_READY_TO_NULL:
break;
default:
break;
}
*/
return ret;
}
......
......@@ -136,6 +136,7 @@ gst_rtp_amr_pay_class_init (GstRtpAMRPayClass * klass)
static void
gst_rtp_amr_pay_init (GstRtpAMRPay * rtpamrpay, GstRtpAMRPayClass * klass)
{
/* needed because of GST_BOILERPLATE */
}
static gboolean
......
......@@ -30,20 +30,6 @@ GST_ELEMENT_DETAILS ("RTP depayloader",
"Accepts raw RTP and RTCP packets and sends them forward",
"Wim Taymans <wim@fluendo.com>");
/* GstRTPDepay signals and args */
enum
{
/* FILL ME */
LAST_SIGNAL
};
enum
{
ARG_0,
ARG_SKIP
/* FILL ME */
};
static GstStaticPadTemplate gst_rtp_depay_src_rtp_template =
GST_STATIC_PAD_TEMPLATE ("srcrtp",
GST_PAD_SRC,
......@@ -72,7 +58,7 @@ GST_STATIC_PAD_TEMPLATE ("sinkrtcp",
GST_STATIC_CAPS ("application/x-rtcp")
);
static void gst_rtp_depay_class_init (gpointer g_class);
static void gst_rtp_depay_class_init (GstRTPDepayClass * klass);
static void gst_rtp_depay_init (GstRTPDepay * rtpdepay);
static GstCaps *gst_rtp_depay_getcaps (GstPad * pad);
......@@ -80,11 +66,6 @@ static GstFlowReturn gst_rtp_depay_chain_rtp (GstPad * pad, GstBuffer * buffer);
static GstFlowReturn gst_rtp_depay_chain_rtcp (GstPad * pad,
GstBuffer * buffer);
static void gst_rtp_depay_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
static void gst_rtp_depay_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
static GstStateChangeReturn gst_rtp_depay_change_state (GstElement * element,
GstStateChange transition);
......@@ -117,15 +98,9 @@ gst_rtp_depay_get_type (void)
}
static void
gst_rtp_depay_class_init (gpointer g_class)
gst_rtp_depay_class_init (GstRTPDepayClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
GstRTPDepayClass *klass;
klass = (GstRTPDepayClass *) g_class;
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_rtp_depay_src_rtp_template));
......@@ -137,11 +112,6 @@ gst_rtp_depay_class_init (gpointer g_class)
gst_static_pad_template_get (&gst_rtp_depay_sink_rtcp_template));
gst_element_class_set_details (gstelement_class, &rtpdepay_details);
gobject_class->set_property = gst_rtp_depay_set_property;
gobject_class->get_property = gst_rtp_depay_get_property;
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SKIP, g_param_spec_int ("skip", "skip", "skip", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
parent_class = g_type_class_peek_parent (klass);
gstelement_class->change_state = gst_rtp_depay_change_state;
......@@ -220,38 +190,6 @@ gst_rtp_depay_chain_rtcp (GstPad * pad, GstBuffer * buffer)
return GST_FLOW_OK;
}
static void
gst_rtp_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstRTPDepay *src;
src = GST_RTP_DEPAY (object);
switch (prop_id) {
case ARG_SKIP:
break;
default:
break;
}
}
static void
gst_rtp_depay_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
GstRTPDepay *src;
src = GST_RTP_DEPAY (object);
switch (prop_id) {
case ARG_SKIP:
break;
default:
break;
}
}
static GstStateChangeReturn
gst_rtp_depay_change_state (GstElement * element, GstStateChange transition)
{
......@@ -260,21 +198,25 @@ gst_rtp_depay_change_state (GstElement * element, GstStateChange transition)
rtpdepay = GST_RTP_DEPAY (element);
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
break;
default:
break;
}
/*
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
break;
default:
break;
}
*/
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
break;
default:
break;
}
/*
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
break;
default:
break;
}
*/
return ret;
}
......
......@@ -109,6 +109,7 @@ static void
gst_rtp_gsm_depay_init (GstRTPGSMDepay * rtpgsmdepay,
GstRTPGSMDepayClass * klass)
{
/* needed because of GST_BOILERPLATE */
}
static gboolean
......
......@@ -43,17 +43,6 @@ GST_ELEMENT_DETAILS ("RTP H263 packet depayloader",
"Philippe Kalaf <philippe.kalaf@collabora.co.uk>, "
"Edward Hervey <bilboed@bilboed.com>");
enum
{
/* FILL ME */
LAST_SIGNAL
};
enum
{
ARG_0
};
#define GST_RFC2190A_HEADER_LEN 4
#define GST_RFC2190B_HEADER_LEN 8
#define GST_RFC2190C_HEADER_LEN 12
......@@ -84,10 +73,6 @@ GST_BOILERPLATE (GstRtpH263Depay, gst_rtp_h263_depay, GstBaseRTPDepayload,
GST_TYPE_BASE_RTP_DEPAYLOAD);
static void gst_rtp_h263_depay_finalize (GObject * object);
static void gst_rtp_h263_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
static void gst_rtp_h263_depay_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
static GstStateChangeReturn gst_rtp_h263_depay_change_state (GstElement *
element, GstStateChange transition);
......@@ -107,7 +92,6 @@ gst_rtp_h263_depay_base_init (gpointer klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_rtp_h263_depay_sink_template));
gst_element_class_set_details (element_class, &gst_rtp_h263depay_details);
}
......@@ -129,9 +113,6 @@ gst_rtp_h263_depay_class_init (GstRtpH263DepayClass * klass)
gobject_class->finalize = gst_rtp_h263_depay_finalize;
gobject_class->set_property = gst_rtp_h263_depay_set_property;
gobject_class->get_property = gst_rtp_h263_depay_get_property;
gstelement_class->change_state = gst_rtp_h263_depay_change_state;
GST_DEBUG_CATEGORY_INIT (rtph263depay_debug, "rtph263depay", 0,
......@@ -354,36 +335,6 @@ bad_packet:
}
}
static void
gst_rtp_h263_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstRtpH263Depay *rtph263depay;
rtph263depay = GST_RTP_H263_DEPAY (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
gst_rtp_h263_depay_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec)
{
GstRtpH263Depay *rtph263depay;
rtph263depay = GST_RTP_H263_DEPAY (object);
switch (prop_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static GstStateChangeReturn
gst_rtp_h263_depay_change_state (GstElement * element,
GstStateChange transition)
......
......@@ -33,19 +33,6 @@ GST_ELEMENT_DETAILS ("RTP packet depayloader",
"Extracts H263/+/++ video from RTP packets (RFC 4629)",
"Wim Taymans <wim@fluendo.com>");
/* RtpH263PDepay signals and args */
enum
{
/* FILL ME */
LAST_SIGNAL
};
enum