Original commit message from CVS:
Adjusted -inspect to the new GstCaps structure
GstElement *element;
GstObjectClass *gstobject_class;
GstElementClass *gstelement_class;
GstElement *element;
GstObjectClass *gstobject_class;
GstElementClass *gstelement_class;
+ GList *pads;
+ GstCaps *caps;
GstPad *pad;
GstRealPad *realpad;
GstPadTemplate *padtemplate;
GstPad *pad;
GstRealPad *realpad;
GstPadTemplate *padtemplate;
GtkArg *args;
guint32 *flags;
gint num_args,i;
GtkArg *args;
guint32 *flags;
gint num_args,i;
while (caps) {
GstType *type;
while (caps) {
GstType *type;
- cap = (GstCaps*)(caps->data);
- caps = g_list_next(caps);
+ printf(" '%s':\n",caps->name);
- printf(" '%s':\n",cap->name);
-
- type = gst_type_find_by_id (cap->id);
+ type = gst_type_find_by_id (caps->id);
if (type)
printf(" MIME type: '%s':\n",type->mime);
else
printf(" MIME type: 'unknown/unknown':\n");
if (type)
printf(" MIME type: '%s':\n",type->mime);
else
printf(" MIME type: 'unknown/unknown':\n");
- if (cap->properties)
- print_props(cap->properties," ");
+ if (caps->properties)
+ print_props(caps->properties," ");
+
+ caps = caps->next;
while (caps) {
GstType *type;
while (caps) {
GstType *type;
- cap = (GstCaps*)(caps->data);
- caps = g_list_next(caps);
+ printf(" '%s':\n",caps->name);
- printf(" '%s':\n",cap->name);
-
- type = gst_type_find_by_id (cap->id);
+ type = gst_type_find_by_id (caps->id);
if (type)
printf(" MIME type: '%s':\n",type->mime);
else
printf(" MIME type: 'unknown/unknown':\n");
if (type)
printf(" MIME type: '%s':\n",type->mime);
else
printf(" MIME type: 'unknown/unknown':\n");
- if (cap->properties)
- print_props(cap->properties," ");
+ if (caps->properties)
+ print_props(caps->properties," ");
+
+ caps = caps->next;