gst/gstminiobject.c: Cannot assert that the refcount has to be positive since a disposed object can be resurected.

Original commit message from CVS:
* gst/gstminiobject.c: (gst_mini_object_ref):
Cannot assert that the refcount has to be positive
since a disposed object can be resurected.
This commit is contained in:
Wim Taymans 2005-08-31 08:57:14 +00:00
parent 5711214593
commit 42dee8bf71
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-08-31 Wim Taymans <wim@fluendo.com>
* gst/gstminiobject.c: (gst_mini_object_ref):
Cannot assert that the refcount has to be positive
since a disposed object can be resurected.
2005-08-31 Wim Taymans <wim@fluendo.com>
* gst/gstpad.c: (gst_pad_init):

View file

@ -190,7 +190,10 @@ GstMiniObject *
gst_mini_object_ref (GstMiniObject * mini_object)
{
g_return_val_if_fail (mini_object != NULL, NULL);
g_return_val_if_fail (mini_object->refcount > 0, NULL);
/* we cannot assert that the refcount > 0 since a bufferalloc
* function might resurect an object
g_return_val_if_fail (mini_object->refcount > 0, NULL);
*/
#ifdef DEBUG_REFCOUNT
GST_CAT_LOG (GST_CAT_REFCOUNTING, "%p ref %d->%d",