mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
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:
parent
22a79f5938
commit
4827c9fe56
1 changed files with 10 additions and 0 deletions
|
@ -225,9 +225,19 @@ gint print_element_info(GstElementFactory *factory) {
|
||||||
printf(" Capabilities:\n");
|
printf(" Capabilities:\n");
|
||||||
caps = pad->caps;
|
caps = pad->caps;
|
||||||
while (caps) {
|
while (caps) {
|
||||||
|
GstType *type;
|
||||||
|
|
||||||
cap = (GstCaps*)(caps->data);
|
cap = (GstCaps*)(caps->data);
|
||||||
caps = g_list_next(caps);
|
caps = g_list_next(caps);
|
||||||
|
|
||||||
printf(" '%s':\n",cap->name);
|
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)
|
if (cap->properties)
|
||||||
print_props(cap->properties," ");
|
print_props(cap->properties," ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue