From 92c48266a67a4f80f2217efd3d2db354014230ee Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 21 Jan 2003 21:15:00 +0000 Subject: [PATCH] Also find other plugin features; need to implement some prettyprint functions still... Original commit message from CVS: Also find other plugin features; need to implement some prettyprint functions still... --- tools/gst-inspect.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index dc87768..55d358c 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -988,6 +988,36 @@ main (int argc, char *argv[]) /* if there's a factory, print out the info */ if (factory) return print_element_info (factory); + else { + GstPluginFeature* feature; + + /* FIXME implement other pretty print function for these */ + feature = gst_registry_pool_find_feature (argv[1], GST_TYPE_SCHEDULER_FACTORY); + if (feature) { + g_print ("%s: a scheduler\n", argv[1]); + return 0; + } + feature = gst_registry_pool_find_feature (argv[1], GST_TYPE_INDEX_FACTORY); + if (feature) { + g_print ("%s: an index\n", argv[1]); + return 0; + } + feature = gst_registry_pool_find_feature (argv[1], GST_TYPE_AUTOPLUG_FACTORY); + if (feature) { + g_print ("%s: an autoplugger\n", argv[1]); + return 0; + } + feature = gst_registry_pool_find_feature (argv[1], GST_TYPE_TYPE_FACTORY); + if (feature) { + g_print ("%s: an type\n", argv[1]); + return 0; + } + feature = gst_registry_pool_find_feature (argv[1], GST_TYPE_URI_HANDLER); + if (feature) { + g_print ("%s: an uri handler\n", argv[1]); + return 0; + } + } } else { /* strip the .so */ so = strstr(argv[1],".so"); -- 2.7.4