gst/gstelementfactory.c (gst_element_factory_create): Avoid eating the caller's refcount.
authorAndy Wingo <wingo@pobox.com>
Tue, 20 Sep 2005 11:09:50 +0000 (11:09 +0000)
committerAndy Wingo <wingo@pobox.com>
Tue, 20 Sep 2005 11:09:50 +0000 (11:09 +0000)
commitb12471008b879a4e5c3951b817d52a8ab4bfa699
tree9d5ab53006558e57a2541d5569df1c7619633adc
parent2ed824baac7e650ed2c922aedc62aedf4ea55ebc
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.
ChangeLog
configure.ac
gst/gstconfig.h.in
gst/gstelementfactory.c
gst/gstobject.c
gst/gstobject.h