summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOlivier CrĂȘte <tester@tester.ca>2014-03-16 20:50:53 -0400
committerOlivier CrĂȘte <tester@tester.ca>2014-03-16 20:50:53 -0400
commit59611a01ac301a2f00982ffe6014c46bfc7617fe (patch)
treed1b940f3fcf90f7e2f707512e7df1443486cce0e /tools
parente743fac26bd5f36268bf1035f33ab900d956b1e3 (diff)
gst-inpect: Print device monitor
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-inspect.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 82e51c734..39add06d0 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -1133,6 +1133,7 @@ print_plugin_features (GstPlugin * plugin)
gint num_features = 0;
gint num_elements = 0;
gint num_typefinders = 0;
+ gint num_devmonitors = 0;
gint num_other = 0;
origlist = features =
@@ -1173,6 +1174,14 @@ print_plugin_features (GstPlugin * plugin)
gst_plugin_feature_get_name (feature));
num_typefinders++;
+ } else if (GST_IS_DEVICE_MONITOR_FACTORY (feature)) {
+ GstDeviceMonitorFactory *factory;
+
+ factory = GST_DEVICE_MONITOR_FACTORY (feature);
+ n_print (" %s: %s\n", GST_OBJECT_NAME (factory),
+ gst_device_monitor_factory_get_metadata (factory,
+ GST_ELEMENT_METADATA_LONGNAME));
+ num_devmonitors++;
} else if (feature) {
n_print (" %s (%s)\n", gst_object_get_name (GST_OBJECT (feature)),
g_type_name (G_OBJECT_TYPE (feature)));
@@ -1190,6 +1199,8 @@ print_plugin_features (GstPlugin * plugin)
n_print (" +-- %d elements\n", num_elements);
if (num_typefinders > 0)
n_print (" +-- %d typefinders\n", num_typefinders);
+ if (num_devmonitors > 0)
+ n_print (" +-- %d device monitors\n", num_devmonitors);
if (num_other > 0)
n_print (" +-- %d other objects\n", num_other);