summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpL16depay.c
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-01-09 11:11:01 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-01-09 11:11:01 +0000
commite7f919986a6834383478991af77982507f023e3d (patch)
tree74ecfff6075aa46612d01f8c8b5e00e1eefce2cc /gst/rtp/gstrtpL16depay.c
parenta895112c29c36e8847dc4a5edade43824e36a191 (diff)
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).
Diffstat (limited to 'gst/rtp/gstrtpL16depay.c')
-rw-r--r--gst/rtp/gstrtpL16depay.c80
1 files changed, 17 insertions, 63 deletions
diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c
index 35b1e9ba..70255839 100644
--- a/gst/rtp/gstrtpL16depay.c
+++ b/gst/rtp/gstrtpL16depay.c
@@ -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;
}