-diff -u -p -r1.142 tools/gst-inspect.c
---- tools/gst-inspect.c 31 Jul 2008 15:20:31 -0000 1.142
-+++ tools/gst-inspect.c 11 Sep 2008 23:47:16 -0000
-@@ -1188,9 +1188,219 @@ print_element_info (GstElementFactory *
+--- a/tools/gst-inspect.c 17 Nov 2008 15:48:14 -0000 1.144
++++ b/tools/gst-inspect.c 20 Jan 2009 16:11:05 -0000
+@@ -1262,9 +1262,219 @@ print_element_info (GstElementFactory *
return 0;
}
{
GstPadDirection direction;
const gchar *type_name;
-@@ -1251,15 +1461,19 @@ print_plugin_automatic_install_info_code
+@@ -1325,15 +1535,19 @@ print_plugin_automatic_install_info_code
gst_structure_remove_field (s, "rate");
gst_structure_remove_field (s, "depth");
gst_structure_remove_field (s, "clock-rate");
{
gchar **protocols, **p;
-@@ -1268,11 +1482,17 @@ print_plugin_automatic_install_info_prot
+@@ -1342,11 +1556,17 @@ print_plugin_automatic_install_info_prot
switch (gst_element_factory_get_uri_type (factory)) {
case GST_URI_SINK:
for (p = protocols; *p != NULL; ++p)
break;
default:
break;
-@@ -1282,7 +1502,7 @@ print_plugin_automatic_install_info_prot
+@@ -1356,7 +1576,7 @@ print_plugin_automatic_install_info_prot
}
static void
{
const gchar *plugin_name;
GList *features, *l;
-@@ -1302,11 +1522,12 @@ print_plugin_automatic_install_info (Gst
+@@ -1376,11 +1596,12 @@ print_plugin_automatic_install_info (Gst
if (g_str_equal (plugin_name, feature->plugin_name)) {
GstElementFactory *factory;
}
}
-@@ -1319,6 +1540,7 @@ main (int argc, char *argv[])
- {
+@@ -1394,6 +1615,7 @@ main (int argc, char *argv[])
gboolean print_all = FALSE;
+ gboolean plugin_name = FALSE;
gboolean print_aii = FALSE;
+ gboolean print_aii_rpm = FALSE;
+ gboolean uri_handlers = FALSE;
GOptionEntry options[] = {
{"print-all", 'a', 0, G_OPTION_ARG_NONE, &print_all,
- N_("Print all elements"), NULL},
-@@ -1327,6 +1549,9 @@ main (int argc, char *argv[])
+@@ -1403,6 +1625,9 @@ main (int argc, char *argv[])
"provides.\n "
"Useful in connection with external automatic plugin "
"installation mechanisms"), NULL},
+ {"rpm", '\0', 0, G_OPTION_ARG_NONE, &print_aii_rpm,
+ N_("Print the machine-parsable list of features of a plugin in RPM "
+ "Provides compatible-format"), NULL},
- GST_TOOLS_GOPTION_VERSION,
- {NULL}
- };
-@@ -1384,7 +1609,7 @@ main (int argc, char *argv[])
+ {"plugin", '\0', 0, G_OPTION_ARG_NONE, &plugin_name,
+ N_("List the plugin contents"), NULL},
+ {"uri-handlers", 'u', 0, G_OPTION_ARG_NONE, &uri_handlers,
+@@ -1478,7 +1703,7 @@ main (int argc, char *argv[])
/* if there is such a plugin, print out info */
if (plugin) {
if (print_aii) {
} else {
print_plugin_info (plugin);
print_plugin_features (plugin);
-@@ -1397,13 +1622,16 @@ main (int argc, char *argv[])
+@@ -1491,13 +1716,16 @@ main (int argc, char *argv[])
if (plugin) {
if (print_aii) {