projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46a8e3
)
help us debug caps ref issues
author
Thomas Vander Stichele
<thomas@apestaart.org>
Thu, 29 May 2003 17:24:03 +0000
(17:24 +0000)
committer
Thomas Vander Stichele
<thomas@apestaart.org>
Thu, 29 May 2003 17:24:03 +0000
(17:24 +0000)
Original commit message from CVS:
help us debug caps ref issues
gst/gstcaps.c
patch
|
blob
|
history
diff --git
a/gst/gstcaps.c
b/gst/gstcaps.c
index
2a06b6c
..
bf35ff6
100644
(file)
--- a/
gst/gstcaps.c
+++ b/
gst/gstcaps.c
@@
-346,6
+346,10
@@
void
gst_caps_debug (GstCaps *caps, const gchar *label)
{
GST_DEBUG_ENTER ("caps debug: %s", label);
+ if (caps && caps->refcount == 0) {
+ g_warning ("Warning: refcount of caps %s is 0", label);
+ return;
+ }
while (caps) {
GST_DEBUG (GST_CAT_CAPS, "caps: %p %s %s (%sfixed) (refcount %d) %s",
caps, caps->name, gst_caps_get_mime (caps),