Added printout of the capabilities of the pads

Original commit message from CVS:
Added printout of the capabilities of the pads
This commit is contained in:
Wim Taymans 2001-01-04 19:16:57 +00:00
parent 22a79f5938
commit 4827c9fe56

View file

@ -225,9 +225,19 @@ gint print_element_info(GstElementFactory *factory) {
printf(" Capabilities:\n");
caps = pad->caps;
while (caps) {
GstType *type;
cap = (GstCaps*)(caps->data);
caps = g_list_next(caps);
printf(" '%s':\n",cap->name);
type = gst_type_find_by_id (cap->id);
if (type)
printf(" MIME type: '%s':\n",type->mime);
else
printf(" MIME type: 'unknown/unknown':\n");
if (cap->properties)
print_props(cap->properties," ");
}