From: Stefan Kost Date: Mon, 13 Sep 2010 06:50:53 +0000 (+0300) Subject: taskpool: make debug only code conditional X-Git-Tag: RELEASE-0.10.31~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef5a78e71feeacabb40041ec409babde0b509188;p=platform%2Fupstream%2Fgstreamer.git taskpool: make debug only code conditional --- diff --git a/gst/gsttaskpool.c b/gst/gsttaskpool.c index 992ef31..67a6a9a 100644 --- a/gst/gsttaskpool.c +++ b/gst/gsttaskpool.c @@ -40,7 +40,9 @@ GST_DEBUG_CATEGORY_STATIC (taskpool_debug); #define GST_CAT_DEFAULT (taskpool_debug) +#ifndef GST_DISABLE_GST_DEBUG static void gst_task_pool_finalize (GObject * object); +#endif #define _do_init \ { \ @@ -126,7 +128,9 @@ gst_task_pool_class_init (GstTaskPoolClass * klass) gobject_class = (GObjectClass *) klass; gsttaskpool_class = (GstTaskPoolClass *) klass; +#ifndef GST_DISABLE_GST_DEBUG gobject_class->finalize = gst_task_pool_finalize; +#endif gsttaskpool_class->prepare = default_prepare; gsttaskpool_class->cleanup = default_cleanup; @@ -139,6 +143,7 @@ gst_task_pool_init (GstTaskPool * pool) { } +#ifndef GST_DISABLE_GST_DEBUG static void gst_task_pool_finalize (GObject * object) { @@ -146,7 +151,7 @@ gst_task_pool_finalize (GObject * object) G_OBJECT_CLASS (gst_task_pool_parent_class)->finalize (object); } - +#endif /** * gst_task_pool_new: *