From: Stefan Sauer Date: Sat, 26 Oct 2013 20:05:13 +0000 (+0200) Subject: inspect: add support for the new factory X-Git-Tag: 1.10.4~752 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e9f018dc47def5954c1e3e712c38900671aa121;p=platform%2Fupstream%2Fgstreamer.git inspect: add support for the new factory Handle tracer modules. --- diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index bb0129a..845f52e 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1141,6 +1141,7 @@ print_plugin_features (GstPlugin * plugin) GList *features, *origlist; gint num_features = 0; gint num_elements = 0; + gint num_tracers = 0; gint num_typefinders = 0; gint num_devproviders = 0; gint num_other = 0; @@ -1191,6 +1192,10 @@ print_plugin_features (GstPlugin * plugin) gst_device_provider_factory_get_metadata (factory, GST_ELEMENT_METADATA_LONGNAME)); num_devproviders++; + } else if (GST_IS_TRACER_FACTORY (feature)) { + n_print (" %s (%s)\n", gst_object_get_name (GST_OBJECT (feature)), + g_type_name (G_OBJECT_TYPE (feature))); + num_tracers++; } else if (feature) { n_print (" %s (%s)\n", gst_object_get_name (GST_OBJECT (feature)), g_type_name (G_OBJECT_TYPE (feature))); @@ -1210,6 +1215,8 @@ print_plugin_features (GstPlugin * plugin) n_print (" +-- %d typefinders\n", num_typefinders); if (num_devproviders > 0) n_print (" +-- %d device providers\n", num_devproviders); + if (num_tracers > 0) + n_print (" +-- %d tracers\n", num_tracers); if (num_other > 0) n_print (" +-- %d other objects\n", num_other); @@ -1228,6 +1235,12 @@ print_element_features (const gchar * element_name) n_print ("%s: a typefind function\n", element_name); return 0; } + feature = gst_registry_find_feature (gst_registry_get (), element_name, + GST_TYPE_TRACER_FACTORY); + if (feature) { + n_print ("%s: a tracer module\n", element_name); + return 0; + } return -1; }