From: Wim T. <wt...@us...> - 2003-01-21 21:15:14
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: wtay Date: Tue Jan 21 2003 13:15:14 PST Log message: Also find other plugin features; need to implement some prettyprint functions still... Modified files: tools : gst-inspect.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-inspect.c.diff?r1=1.36&r2=1.37 ====Begin Diffs==== Index: gst-inspect.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-inspect.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- gst-inspect.c 16 Jan 2003 21:22:26 -0000 1.36 +++ gst-inspect.c 21 Jan 2003 21:15:00 -0000 1.37 @@ -988,6 +988,36 @@ /* 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"); |