summaryrefslogtreecommitdiff
path: root/gst/gstobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/gstobject.c')
-rw-r--r--gst/gstobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/gstobject.c b/gst/gstobject.c
index 91bd7aa95..79cc89945 100644
--- a/gst/gstobject.c
+++ b/gst/gstobject.c
@@ -33,7 +33,7 @@
#endif
#define DEBUG_REFCOUNT
-#ifndef HAVE_GLIB_2_8
+#ifndef GST_HAVE_GLIB_2_8
#define REFCOUNT_HACK
#endif
@@ -218,7 +218,9 @@ gst_object_init (GTypeInstance * instance, gpointer g_class)
object->parent = NULL;
object->name = NULL;
GST_CAT_LOG_OBJECT (GST_CAT_REFCOUNTING, object, "%p new", object);
+#ifdef REFCOUNT_HACK
gst_atomic_int_set (&object->refcount, 1);
+#endif
PATCH_REFCOUNT (object);
object->flags = 0;