print refcount in _show

Original commit message from CVS:
print refcount in _show
This commit is contained in:
Wim Taymans 2003-02-27 18:29:07 +00:00
parent 91d33d766a
commit 2b3c56c4d1

View file

@ -1765,15 +1765,16 @@ gst_opt_scheduler_show (GstScheduler *sched)
GSList *groups = chain->groups; GSList *groups = chain->groups;
chains = g_slist_next (chains); chains = g_slist_next (chains);
g_print ("+- chain %p: %d groups, %d enabled, flags %d\n", chain, chain->num_groups, chain->num_enabled, chain->flags); g_print ("+- chain %p: refcount %d, %d groups, %d enabled, flags %d\n",
chain, chain->refcount, chain->num_groups, chain->num_enabled, chain->flags);
while (groups) { while (groups) {
GstOptSchedulerGroup *group = (GstOptSchedulerGroup *) groups->data; GstOptSchedulerGroup *group = (GstOptSchedulerGroup *) groups->data;
GSList *elements = group->elements; GSList *elements = group->elements;
groups = g_slist_next (groups); groups = g_slist_next (groups);
g_print (" +- group %p: %d elements, %d enabled, flags %d, entry %s, %s\n", g_print (" +- group %p: refcount %d, %d elements, %d enabled, flags %d, entry %s, %s\n",
group, group->num_elements, group->num_enabled, group->flags, group, group->refcount, group->num_elements, group->num_enabled, group->flags,
(group->entry ? GST_ELEMENT_NAME (group->entry): "(none)"), (group->entry ? GST_ELEMENT_NAME (group->entry): "(none)"),
(group->type == GST_OPT_SCHEDULER_GROUP_GET ? "get-based" : "loop-based") ); (group->type == GST_OPT_SCHEDULER_GROUP_GET ? "get-based" : "loop-based") );