Remove GST_DEBUG_FUNCPTR where they're pointless
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 28 Oct 2009 00:59:35 +0000 (00:59 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 11 Sep 2012 00:54:33 +0000 (01:54 +0100)
There's not much point in using GST_DEBUG_FUNCPTR with GObject
virtual functions such as get_property, set_propery, finalize and
dispose, since they'll never be used by anyone anyway. Saves a
few bytes and possibly a sixteenth of a polar bear.

gst/gdp/gstgdpdepay.c
gst/gdp/gstgdppay.c

index 2669967..88ea6c0 100644 (file)
@@ -110,7 +110,7 @@ gst_gdp_depay_class_init (GstGDPDepayClass * klass)
 
   gstelement_class->change_state =
       GST_DEBUG_FUNCPTR (gst_gdp_depay_change_state);
-  gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_gdp_depay_finalize);
+  gobject_class->finalize = gst_gdp_depay_finalize;
 }
 
 static void
index f447dee..584e2ea 100644 (file)
@@ -122,9 +122,9 @@ gst_gdp_pay_class_init (GstGDPPayClass * klass)
   gobject_class = (GObjectClass *) klass;
   gstelement_class = (GstElementClass *) klass;
 
-  gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_gdp_pay_set_property);
-  gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_gdp_pay_get_property);
-  gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_gdp_pay_finalize);
+  gobject_class->set_property = gst_gdp_pay_set_property;
+  gobject_class->get_property = gst_gdp_pay_get_property;
+  gobject_class->finalize = gst_gdp_pay_finalize;
 
   g_object_class_install_property (gobject_class, PROP_CRC_HEADER,
       g_param_spec_boolean ("crc-header", "CRC Header",