mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 07:26:33 +00:00
Adjusted -inspect to the new GstCaps structure
Original commit message from CVS: Adjusted -inspect to the new GstCaps structure
This commit is contained in:
parent
a8e66eca9e
commit
df681e7f0e
1 changed files with 14 additions and 16 deletions
|
@ -65,11 +65,11 @@ print_element_info (GstElementFactory *factory)
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
GstObjectClass *gstobject_class;
|
GstObjectClass *gstobject_class;
|
||||||
GstElementClass *gstelement_class;
|
GstElementClass *gstelement_class;
|
||||||
GList *pads, *caps;
|
GList *pads;
|
||||||
|
GstCaps *caps;
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
GstRealPad *realpad;
|
GstRealPad *realpad;
|
||||||
GstPadTemplate *padtemplate;
|
GstPadTemplate *padtemplate;
|
||||||
GstCaps *cap;
|
|
||||||
GtkArg *args;
|
GtkArg *args;
|
||||||
guint32 *flags;
|
guint32 *flags;
|
||||||
gint num_args,i;
|
gint num_args,i;
|
||||||
|
@ -121,19 +121,18 @@ print_element_info (GstElementFactory *factory)
|
||||||
while (caps) {
|
while (caps) {
|
||||||
GstType *type;
|
GstType *type;
|
||||||
|
|
||||||
cap = (GstCaps*)(caps->data);
|
printf(" '%s':\n",caps->name);
|
||||||
caps = g_list_next(caps);
|
|
||||||
|
|
||||||
printf(" '%s':\n",cap->name);
|
type = gst_type_find_by_id (caps->id);
|
||||||
|
|
||||||
type = gst_type_find_by_id (cap->id);
|
|
||||||
if (type)
|
if (type)
|
||||||
printf(" MIME type: '%s':\n",type->mime);
|
printf(" MIME type: '%s':\n",type->mime);
|
||||||
else
|
else
|
||||||
printf(" MIME type: 'unknown/unknown':\n");
|
printf(" MIME type: 'unknown/unknown':\n");
|
||||||
|
|
||||||
if (cap->properties)
|
if (caps->properties)
|
||||||
print_props(cap->properties," ");
|
print_props(caps->properties," ");
|
||||||
|
|
||||||
|
caps = caps->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,19 +209,18 @@ print_element_info (GstElementFactory *factory)
|
||||||
while (caps) {
|
while (caps) {
|
||||||
GstType *type;
|
GstType *type;
|
||||||
|
|
||||||
cap = (GstCaps*)(caps->data);
|
printf(" '%s':\n",caps->name);
|
||||||
caps = g_list_next(caps);
|
|
||||||
|
|
||||||
printf(" '%s':\n",cap->name);
|
type = gst_type_find_by_id (caps->id);
|
||||||
|
|
||||||
type = gst_type_find_by_id (cap->id);
|
|
||||||
if (type)
|
if (type)
|
||||||
printf(" MIME type: '%s':\n",type->mime);
|
printf(" MIME type: '%s':\n",type->mime);
|
||||||
else
|
else
|
||||||
printf(" MIME type: 'unknown/unknown':\n");
|
printf(" MIME type: 'unknown/unknown':\n");
|
||||||
|
|
||||||
if (cap->properties)
|
if (caps->properties)
|
||||||
print_props(cap->properties," ");
|
print_props(caps->properties," ");
|
||||||
|
|
||||||
|
caps = caps->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue