From ac0e11e55c563dc0916c57314d8d1b5c5f903f38 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 19 Apr 2009 13:55:24 +0200 Subject: [PATCH] remove empty method implementations. --- ext/mpeg2dec/gstmpeg2dec.c | 37 ---------------------------------- gst/asfdemux/gstrtspwms.c | 41 -------------------------------------- gst/realmedia/pnmsrc.c | 36 --------------------------------- gst/realmedia/rdtdepay.c | 38 ----------------------------------- gst/realmedia/rtspreal.c | 41 -------------------------------------- 5 files changed, 193 deletions(-) diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index fc0d9a2b85..b1631f0925 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -92,11 +92,6 @@ static void gst_mpeg2dec_init (GstMpeg2dec * mpeg2dec); static void gst_mpeg2dec_finalize (GObject * object); static void gst_mpeg2dec_reset (GstMpeg2dec * mpeg2dec); -static void gst_mpeg2dec_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec); -static void gst_mpeg2dec_get_property (GObject * object, guint prop_id, - GValue * value, GParamSpec * pspec); - #ifndef GST_DISABLE_INDEX static void gst_mpeg2dec_set_index (GstElement * element, GstIndex * index); static GstIndex *gst_mpeg2dec_get_index (GstElement * element); @@ -193,8 +188,6 @@ gst_mpeg2dec_class_init (GstMpeg2decClass * klass) parent_class = g_type_class_peek_parent (klass); - gobject_class->set_property = gst_mpeg2dec_set_property; - gobject_class->get_property = gst_mpeg2dec_get_property; gobject_class->finalize = gst_mpeg2dec_finalize; gstelement_class->change_state = gst_mpeg2dec_change_state; @@ -1831,36 +1824,6 @@ init_failed: } } -static void -gst_mpeg2dec_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec) -{ - GstMpeg2dec *src; - - g_return_if_fail (GST_IS_MPEG2DEC (object)); - src = GST_MPEG2DEC (object); - - switch (prop_id) { - default: - break; - } -} - -static void -gst_mpeg2dec_get_property (GObject * object, guint prop_id, GValue * value, - GParamSpec * pspec) -{ - GstMpeg2dec *mpeg2dec; - - g_return_if_fail (GST_IS_MPEG2DEC (object)); - mpeg2dec = GST_MPEG2DEC (object); - - switch (prop_id) { - default: - break; - } -} - static gboolean plugin_init (GstPlugin * plugin) { diff --git a/gst/asfdemux/gstrtspwms.c b/gst/asfdemux/gstrtspwms.c index b30a1c659c..3b2195ea82 100644 --- a/gst/asfdemux/gstrtspwms.c +++ b/gst/asfdemux/gstrtspwms.c @@ -208,11 +208,6 @@ send_error: } } -static void gst_rtsp_wms_finalize (GObject * object); - -static GstStateChangeReturn gst_rtsp_wms_change_state (GstElement * element, - GstStateChange transition); - static void gst_rtsp_wms_extension_init (gpointer g_iface, gpointer iface_data); static void @@ -242,19 +237,6 @@ gst_rtsp_wms_base_init (gpointer klass) static void gst_rtsp_wms_class_init (GstRTSPWMSClass * g_class) { - GObjectClass *gobject_class; - GstElementClass *gstelement_class; - GstRTSPWMSClass *klass; - - klass = (GstRTSPWMSClass *) g_class; - gobject_class = (GObjectClass *) klass; - gstelement_class = (GstElementClass *) klass; - - gobject_class->finalize = gst_rtsp_wms_finalize; - - gstelement_class->change_state = - GST_DEBUG_FUNCPTR (gst_rtsp_wms_change_state); - GST_DEBUG_CATEGORY_INIT (rtspwms_debug, "rtspwms", 0, "WMS RTSP extension"); } @@ -263,29 +245,6 @@ gst_rtsp_wms_init (GstRTSPWMS * rtspwms, GstRTSPWMSClass * klass) { } -static void -gst_rtsp_wms_finalize (GObject * object) -{ - GstRTSPWMS *rtspwms; - - rtspwms = GST_RTSP_WMS (object); - - G_OBJECT_CLASS (parent_class)->finalize (object); -} - -static GstStateChangeReturn -gst_rtsp_wms_change_state (GstElement * element, GstStateChange transition) -{ - GstStateChangeReturn ret; - GstRTSPWMS *rtspwms; - - rtspwms = GST_RTSP_WMS (element); - - ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); - - return ret; -} - static void gst_rtsp_wms_extension_init (gpointer g_iface, gpointer iface_data) { diff --git a/gst/realmedia/pnmsrc.c b/gst/realmedia/pnmsrc.c index 20edd4f2cf..6b6bef6b92 100644 --- a/gst/realmedia/pnmsrc.c +++ b/gst/realmedia/pnmsrc.c @@ -86,8 +86,6 @@ static void gst_pnm_src_set_property (GObject * object, guint prop_id, static void gst_pnm_src_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static GstStateChangeReturn gst_pnm_src_change_state (GstElement * - element, GstStateChange transition); static void gst_pnm_src_base_init (gpointer klass) @@ -107,11 +105,9 @@ static void gst_pnm_src_class_init (GstPNMSrcClass * klass) { GObjectClass *gobject_class; - GstElementClass *gstelement_class; GstPushSrcClass *gstpushsrc_class; gobject_class = (GObjectClass *) klass; - gstelement_class = (GstElementClass *) klass; gstpushsrc_class = (GstPushSrcClass *) klass; parent_class = g_type_class_peek_parent (klass); @@ -126,8 +122,6 @@ gst_pnm_src_class_init (GstPNMSrcClass * klass) "Location of the PNM url to read", DEFAULT_LOCATION, G_PARAM_READWRITE)); - gstelement_class->change_state = gst_pnm_src_change_state; - gstpushsrc_class->create = gst_pnm_src_create; } @@ -193,36 +187,6 @@ gst_pnm_src_get_property (GObject * object, guint prop_id, } } -static GstStateChangeReturn -gst_pnm_src_change_state (GstElement * element, GstStateChange transition) -{ - GstPNMSrc *src; - GstStateChangeReturn ret; - - src = GST_PNM_SRC (element); - - switch (transition) { - case GST_STATE_CHANGE_NULL_TO_READY: - break; - case GST_STATE_CHANGE_READY_TO_PAUSED: - break; - default: - break; - } - - ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); - - switch (transition) { - case GST_STATE_CHANGE_PAUSED_TO_READY: - break; - case GST_STATE_CHANGE_READY_TO_NULL: - break; - default: - break; - } - return ret; -} - static GstFlowReturn gst_pnm_src_create (GstPushSrc * psrc, GstBuffer ** buf) { diff --git a/gst/realmedia/rdtdepay.c b/gst/realmedia/rdtdepay.c index bc0bbf4c81..1c8680ca34 100644 --- a/gst/realmedia/rdtdepay.c +++ b/gst/realmedia/rdtdepay.c @@ -75,11 +75,6 @@ GST_BOILERPLATE (GstRDTDepay, gst_rdt_depay, GstElement, GST_TYPE_ELEMENT); static void gst_rdt_depay_finalize (GObject * object); -static void gst_rdt_depay_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec); -static void gst_rdt_depay_get_property (GObject * object, guint prop_id, - GValue * value, GParamSpec * pspec); - static GstStateChangeReturn gst_rdt_depay_change_state (GstElement * element, GstStateChange transition); @@ -114,9 +109,6 @@ gst_rdt_depay_class_init (GstRDTDepayClass * klass) parent_class = g_type_class_peek_parent (klass); - gobject_class->set_property = gst_rdt_depay_set_property; - gobject_class->get_property = gst_rdt_depay_get_property; - gobject_class->finalize = gst_rdt_depay_finalize; gstelement_class->change_state = gst_rdt_depay_change_state; @@ -466,36 +458,6 @@ gst_rdt_depay_chain (GstPad * pad, GstBuffer * buf) return ret; } -static void -gst_rdt_depay_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec) -{ - GstRDTDepay *rdtdepay; - - rdtdepay = GST_RDT_DEPAY (object); - - switch (prop_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static void -gst_rdt_depay_get_property (GObject * object, guint prop_id, - GValue * value, GParamSpec * pspec) -{ - GstRDTDepay *rdtdepay; - - rdtdepay = GST_RDT_DEPAY (object); - - switch (prop_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - static GstStateChangeReturn gst_rdt_depay_change_state (GstElement * element, GstStateChange transition) { diff --git a/gst/realmedia/rtspreal.c b/gst/realmedia/rtspreal.c index f35cc3e70f..81d75bbc89 100644 --- a/gst/realmedia/rtspreal.c +++ b/gst/realmedia/rtspreal.c @@ -665,11 +665,6 @@ reset: } } -static void gst_rtsp_real_finalize (GObject * object); - -static GstStateChangeReturn gst_rtsp_real_change_state (GstElement * element, - GstStateChange transition); - static void gst_rtsp_real_extension_init (gpointer g_iface, gpointer iface_data); @@ -700,19 +695,6 @@ gst_rtsp_real_base_init (gpointer klass) static void gst_rtsp_real_class_init (GstRTSPRealClass * g_class) { - GObjectClass *gobject_class; - GstElementClass *gstelement_class; - GstRTSPRealClass *klass; - - klass = (GstRTSPRealClass *) g_class; - gobject_class = (GObjectClass *) klass; - gstelement_class = (GstElementClass *) klass; - - gobject_class->finalize = gst_rtsp_real_finalize; - - gstelement_class->change_state = - GST_DEBUG_FUNCPTR (gst_rtsp_real_change_state); - GST_DEBUG_CATEGORY_INIT (rtspreal_debug, "rtspreal", 0, "RealMedia RTSP extension"); } @@ -723,29 +705,6 @@ gst_rtsp_real_init (GstRTSPReal * rtspreal, GstRTSPRealClass * klass) rtspreal->isreal = FALSE; } -static void -gst_rtsp_real_finalize (GObject * object) -{ - GstRTSPReal *rtspreal; - - rtspreal = GST_RTSP_REAL (object); - - G_OBJECT_CLASS (parent_class)->finalize (object); -} - -static GstStateChangeReturn -gst_rtsp_real_change_state (GstElement * element, GstStateChange transition) -{ - GstStateChangeReturn ret; - GstRTSPReal *rtspreal; - - rtspreal = GST_RTSP_REAL (element); - - ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); - - return ret; -} - static void gst_rtsp_real_extension_init (gpointer g_iface, gpointer iface_data) {