mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
help us debug caps ref issues
Original commit message from CVS: help us debug caps ref issues
This commit is contained in:
parent
e46a8e3add
commit
e05cab4b4c
1 changed files with 4 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue