diff options
author | Andy Wingo <wingo@pobox.com> | 2005-09-20 11:09:50 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-09-20 11:09:50 +0000 |
commit | b12471008b879a4e5c3951b817d52a8ab4bfa699 (patch) | |
tree | 9d5ab53006558e57a2541d5569df1c7619633adc /gst/gstconfig.h.in | |
parent | 2ed824baac7e650ed2c922aedc62aedf4ea55ebc (diff) |
gst/gstelementfactory.c (gst_element_factory_create): Avoid eating the caller's refcount.
Original commit message from CVS:
2005-09-20 Andy Wingo <wingo@pobox.com>
* gst/gstelementfactory.c (gst_element_factory_create): Avoid
eating the caller's refcount.
* gst/gstobject.h (GST_OBJECT_REFCOUNT)
(GST_OBJECT_REFCOUNT_VALUE): Conditionally fondle the right
refcount.
* gst/gstconfig.h.in (GST_HAVE_GLIB_2_8):
* configure.ac (GST_HAVE_GLIB_2_8_DEFINE): Make the availability
of GLib 2.8 public, so we can know which refcount to check in
tests.
* gst/gstobject.c: Use the GST_HAVE_GLIB_2_8 define.
(gst_object_init): Only set the gst refcount if we're going ahead
with the refcount hack.
Diffstat (limited to 'gst/gstconfig.h.in')
-rw-r--r-- | gst/gstconfig.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/gstconfig.h.in b/gst/gstconfig.h.in index 0647d5407..70b60ebf4 100644 --- a/gst/gstconfig.h.in +++ b/gst/gstconfig.h.in @@ -112,6 +112,10 @@ /* whether or not the CPU supports unaligned access */ @GST_HAVE_UNALIGNED_ACCESS_DEFINE@ +/* whether or not we are using glib 2.8 api, e.g. atomic gobject + refcounting */ +@GST_HAVE_GLIB_2_8_DEFINE@ + /***** Deal with XML stuff, we have to handle both loadsave and registry *****/ #if (! (defined(GST_DISABLE_LOADSAVE) && defined(GST_DISABLE_REGISTRY)) ) |