Added printout of the capabilities of the pads
authorWim Taymans <wim.taymans@gmail.com>
Thu, 4 Jan 2001 19:16:57 +0000 (19:16 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 4 Jan 2001 19:16:57 +0000 (19:16 +0000)
Original commit message from CVS:
Added printout of the capabilities of the pads

tools/gstreamer-inspect.c

index a248cb3..7490ad8 100644 (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,"        ");
         }