diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-10-28 00:29:30 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-10-28 00:44:24 +0000 |
commit | daecaf0e8af9234155646ed07c7269f3379b72f7 (patch) | |
tree | bc346cf8cb6e71fc1f128c3b5bab26778406e5aa /plugins | |
parent | ff7d9470b75e2f6743f5d716caa970f5d743b198 (diff) |
Remove GST_DEBUG_FUNCPTR where they're pointless
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 tenth of a polar bear.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/elements/gstfakesink.c | 4 | ||||
-rw-r--r-- | plugins/elements/gstfakesrc.c | 6 | ||||
-rw-r--r-- | plugins/elements/gstfilesrc.c | 2 | ||||
-rw-r--r-- | plugins/elements/gstidentity.c | 6 | ||||
-rw-r--r-- | plugins/elements/gstmultiqueue.c | 8 | ||||
-rw-r--r-- | plugins/elements/gstqueue.c | 7 | ||||
-rw-r--r-- | plugins/elements/gsttee.c | 6 | ||||
-rw-r--r-- | plugins/elements/gsttypefindelement.c | 13 | ||||
-rw-r--r-- | plugins/indexers/gstmemindex.c | 2 |
9 files changed, 25 insertions, 29 deletions
diff --git a/plugins/elements/gstfakesink.c b/plugins/elements/gstfakesink.c index 3dff85745c..0ef658c0c0 100644 --- a/plugins/elements/gstfakesink.c +++ b/plugins/elements/gstfakesink.c @@ -181,8 +181,8 @@ gst_fake_sink_class_init (GstFakeSinkClass * klass) gstelement_class = GST_ELEMENT_CLASS (klass); gstbase_sink_class = GST_BASE_SINK_CLASS (klass); - gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_fake_sink_set_property); - gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_fake_sink_get_property); + gobject_class->set_property = gst_fake_sink_set_property; + gobject_class->get_property = gst_fake_sink_get_property; gobject_class->finalize = gst_fake_sink_finalize; g_object_class_install_property (gobject_class, PROP_STATE_ERROR, diff --git a/plugins/elements/gstfakesrc.c b/plugins/elements/gstfakesrc.c index 75c84736a8..1594f5d4ce 100644 --- a/plugins/elements/gstfakesrc.c +++ b/plugins/elements/gstfakesrc.c @@ -277,10 +277,10 @@ gst_fake_src_class_init (GstFakeSrcClass * klass) gobject_class = G_OBJECT_CLASS (klass); gstbase_src_class = GST_BASE_SRC_CLASS (klass); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_fake_src_finalize); + gobject_class->finalize = gst_fake_src_finalize; - gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_fake_src_set_property); - gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_fake_src_get_property); + gobject_class->set_property = gst_fake_src_set_property; + gobject_class->get_property = gst_fake_src_get_property; /* FIXME: this is not implemented; would make sense once basesrc and fakesrc diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index a9f1be5590..03f52490a6 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -291,7 +291,7 @@ gst_file_src_class_init (GstFileSrcClass * klass) DEFAULT_SEQUENTIAL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_MUTABLE_PLAYING)); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_file_src_finalize); + gobject_class->finalize = gst_file_src_finalize; gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_file_src_start); gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_file_src_stop); diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c index 1555ba88f5..6ba209def5 100644 --- a/plugins/elements/gstidentity.c +++ b/plugins/elements/gstidentity.c @@ -179,8 +179,8 @@ gst_identity_class_init (GstIdentityClass * klass) gobject_class = G_OBJECT_CLASS (klass); gstbasetrans_class = GST_BASE_TRANSFORM_CLASS (klass); - gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_identity_set_property); - gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_identity_get_property); + gobject_class->set_property = gst_identity_set_property; + gobject_class->get_property = gst_identity_get_property; g_object_class_install_property (gobject_class, PROP_SLEEP_TIME, g_param_spec_uint ("sleep-time", "Sleep time", @@ -263,7 +263,7 @@ gst_identity_class_init (GstIdentityClass * klass) G_STRUCT_OFFSET (GstIdentityClass, handoff), NULL, NULL, marshal_VOID__MINIOBJECT, G_TYPE_NONE, 1, GST_TYPE_BUFFER); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_identity_finalize); + gobject_class->finalize = gst_identity_finalize; gstbasetrans_class->event = GST_DEBUG_FUNCPTR (gst_identity_event); gstbasetrans_class->transform_ip = diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 08f965d7d3..c759633de8 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -284,10 +284,8 @@ gst_multi_queue_class_init (GstMultiQueueClass * klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass); - gobject_class->set_property = - GST_DEBUG_FUNCPTR (gst_multi_queue_set_property); - gobject_class->get_property = - GST_DEBUG_FUNCPTR (gst_multi_queue_get_property); + gobject_class->set_property = gst_multi_queue_set_property; + gobject_class->get_property = gst_multi_queue_get_property; /* SIGNALS */ @@ -393,7 +391,7 @@ gst_multi_queue_class_init (GstMultiQueueClass * klass) DEFAULT_HIGH_PERCENT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_multi_queue_finalize); + gobject_class->finalize = gst_multi_queue_finalize; gstelement_class->request_new_pad = GST_DEBUG_FUNCPTR (gst_multi_queue_request_new_pad); diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index 1bb809534c..eb78d9433f 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -249,8 +249,8 @@ gst_queue_class_init (GstQueueClass * klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_queue_set_property); - gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_queue_get_property); + gobject_class->set_property = gst_queue_set_property; + gobject_class->get_property = gst_queue_get_property; /* signals */ /** @@ -351,8 +351,7 @@ gst_queue_class_init (GstQueueClass * klass) GST_TYPE_QUEUE_LEAKY, GST_QUEUE_NO_LEAK, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - /* set several parent class virtual functions */ - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_queue_finalize); + gobject_class->finalize = gst_queue_finalize; } static void diff --git a/plugins/elements/gsttee.c b/plugins/elements/gsttee.c index e545e1520f..56020635b9 100644 --- a/plugins/elements/gsttee.c +++ b/plugins/elements/gsttee.c @@ -168,9 +168,9 @@ gst_tee_class_init (GstTeeClass * klass) gobject_class = G_OBJECT_CLASS (klass); gstelement_class = GST_ELEMENT_CLASS (klass); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_tee_finalize); - gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_tee_set_property); - gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_tee_get_property); + gobject_class->finalize = gst_tee_finalize; + gobject_class->set_property = gst_tee_set_property; + gobject_class->get_property = gst_tee_get_property; g_object_class_install_property (gobject_class, PROP_NUM_SRC_PADS, g_param_spec_int ("num-src-pads", "Num Src Pads", diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index bec85ab60c..74423b36d3 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -192,13 +192,9 @@ gst_type_find_element_class_init (GstTypeFindElementClass * typefind_class) GObjectClass *gobject_class = G_OBJECT_CLASS (typefind_class); GstElementClass *gstelement_class = GST_ELEMENT_CLASS (typefind_class); - gobject_class->set_property = - GST_DEBUG_FUNCPTR (gst_type_find_element_set_property); - gobject_class->get_property = - GST_DEBUG_FUNCPTR (gst_type_find_element_get_property); - gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_type_find_element_dispose); - - typefind_class->have_type = gst_type_find_element_have_type; + gobject_class->set_property = gst_type_find_element_set_property; + gobject_class->get_property = gst_type_find_element_get_property; + gobject_class->dispose = gst_type_find_element_dispose; g_object_class_install_property (gobject_class, PROP_CAPS, g_param_spec_boxed ("caps", _("caps"), @@ -233,6 +229,9 @@ gst_type_find_element_class_init (GstTypeFindElementClass * typefind_class) gst_marshal_VOID__UINT_BOXED, G_TYPE_NONE, 2, G_TYPE_UINT, GST_TYPE_CAPS | G_SIGNAL_TYPE_STATIC_SCOPE); + typefind_class->have_type = + GST_DEBUG_FUNCPTR (gst_type_find_element_have_type); + gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_type_find_element_change_state); } diff --git a/plugins/indexers/gstmemindex.c b/plugins/indexers/gstmemindex.c index ce23bae627..8cf5a38789 100644 --- a/plugins/indexers/gstmemindex.c +++ b/plugins/indexers/gstmemindex.c @@ -157,7 +157,7 @@ gst_mem_index_class_init (GstMemIndexClass * klass) parent_class = g_type_class_peek_parent (klass); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_mem_index_finalize); + gobject_class->finalize = gst_mem_index_finalize; gstindex_class->add_entry = GST_DEBUG_FUNCPTR (gst_mem_index_add_entry); gstindex_class->get_assoc_entry = |