gst/gstminiobject.c: Cannot assert that the refcount has to be positive since a dispo...
authorWim Taymans <wim.taymans@gmail.com>
Wed, 31 Aug 2005 08:57:14 +0000 (08:57 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 31 Aug 2005 08:57:14 +0000 (08:57 +0000)
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.

ChangeLog
gst/gstminiobject.c

index 244c606..43a2fc6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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):
        Revert change, need to first fix badly behaving 
        apps.
index 57a8bf4..54bf9ca 100644 (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",