mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
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:
parent
5711214593
commit
42dee8bf71
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
2005-08-31 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstpad.c: (gst_pad_init):
|
* gst/gstpad.c: (gst_pad_init):
|
||||||
|
|
|
@ -190,7 +190,10 @@ GstMiniObject *
|
||||||
gst_mini_object_ref (GstMiniObject * mini_object)
|
gst_mini_object_ref (GstMiniObject * mini_object)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (mini_object != NULL, NULL);
|
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
|
#ifdef DEBUG_REFCOUNT
|
||||||
GST_CAT_LOG (GST_CAT_REFCOUNTING, "%p ref %d->%d",
|
GST_CAT_LOG (GST_CAT_REFCOUNTING, "%p ref %d->%d",
|
||||||
|
|
Loading…
Reference in a new issue