mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-09 17:44:14 +00:00
gstcheck: Make ASSERT_MINI_OBJECT_REFCOUNT more useful
knowing which miniobject failed helps us locate it in debug logs
This commit is contained in:
parent
b24ae2a127
commit
acd905d78a
1 changed files with 3 additions and 3 deletions
|
@ -413,12 +413,12 @@ G_STMT_START { \
|
|||
#define ASSERT_BUFFER_REFCOUNT(buffer, name, value) \
|
||||
ASSERT_MINI_OBJECT_REFCOUNT(buffer, name, value)
|
||||
|
||||
#define ASSERT_MINI_OBJECT_REFCOUNT(caps, name, value) \
|
||||
#define ASSERT_MINI_OBJECT_REFCOUNT(miniobj, name, value) \
|
||||
G_STMT_START { \
|
||||
int rc; \
|
||||
rc = GST_MINI_OBJECT_REFCOUNT_VALUE (caps); \
|
||||
rc = GST_MINI_OBJECT_REFCOUNT_VALUE (miniobj); \
|
||||
fail_unless (rc == value, \
|
||||
name " refcount is %d instead of %d", rc, value);\
|
||||
name " (%p) refcount is %d instead of %d", miniobj, rc, value); \
|
||||
} G_STMT_END
|
||||
|
||||
#define ASSERT_SET_STATE(element, state, ret) \
|
||||
|
|
Loading…
Reference in a new issue