2008-11-12 Wim Taymans <wim.taymans@collabora.co.uk>
+ * tools/gst-inspect.c: (main):
+ Add --plugin option. Fixes #560301.
+
+2008-11-12 Wim Taymans <wim.taymans@collabora.co.uk>
+
* docs/random/wtay/poll-timeout:
Quick braindump for a possible (not totally verified) atomic case.
main (int argc, char *argv[])
{
gboolean print_all = FALSE;
+ gboolean plugin_name = FALSE;
gboolean print_aii = FALSE;
GOptionEntry options[] = {
{"print-all", 'a', 0, G_OPTION_ARG_NONE, &print_all,
"provides.\n "
"Useful in connection with external automatic plugin "
"installation mechanisms"), NULL},
+ {"plugin", '\0', 0, G_OPTION_ARG_NONE, &plugin_name,
+ N_("List the plugin contents"), NULL},
GST_TOOLS_GOPTION_VERSION,
{NULL}
};
const char *arg = argv[argc - 1];
int retval;
- factory = gst_element_factory_find (arg);
- /* if there's a factory, print out the info */
- if (factory) {
- retval = print_element_info (factory, print_all);
- gst_object_unref (factory);
+ if (!plugin_name) {
+ factory = gst_element_factory_find (arg);
+
+ /* if there's a factory, print out the info */
+ if (factory) {
+ retval = print_element_info (factory, print_all);
+ gst_object_unref (factory);
+ } else {
+ retval = print_element_features (arg);
+ }
} else {
- retval = print_element_features (arg);
+ retval = -1;
}
/* otherwise check if it's a plugin */