diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-05-01 22:28:11 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-05-01 23:23:41 +0100 |
commit | e73747a7e062204b5c8fb30cd37e168885f7d8d6 (patch) | |
tree | 630ea5349ba5cdbb73b7ed9e4933987feb541b87 /tools | |
parent | ecf74cf2dbcf36c11557bb4a1aa9ec8f3fab36c7 (diff) | |
download | gstreamer-e73747a7e062204b5c8fb30cd37e168885f7d8d6.tar.gz |
tools, base: don't poke into GstTypeFindFactory struct, use public API
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-inspect.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index b59bcb0251..a8000e7c07 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1026,17 +1026,20 @@ print_element_list (gboolean print_all) #endif } else if (GST_IS_TYPE_FIND_FACTORY (feature)) { GstTypeFindFactory *factory; + const gchar *const *extensions; factory = GST_TYPE_FIND_FACTORY (feature); if (!print_all) g_print ("%s: %s: ", gst_plugin_get_name (plugin), gst_plugin_feature_get_name (feature)); - if (factory->extensions) { + + extensions = gst_type_find_factory_get_extensions (factory); + if (extensions != NULL) { guint i = 0; - while (factory->extensions[i]) { + while (extensions[i]) { if (!print_all) - g_print ("%s%s", i > 0 ? ", " : "", factory->extensions[i]); + g_print ("%s%s", i > 0 ? ", " : "", extensions[i]); i++; } if (!print_all) @@ -1224,15 +1227,17 @@ print_plugin_features (GstPlugin * plugin) #endif } else if (GST_IS_TYPE_FIND_FACTORY (feature)) { GstTypeFindFactory *factory; + const gchar *const *extensions; factory = GST_TYPE_FIND_FACTORY (feature); - if (factory->extensions) { + extensions = gst_type_find_factory_get_extensions (factory); + if (extensions) { guint i = 0; g_print ("%s: %s: ", gst_plugin_get_name (plugin), gst_plugin_feature_get_name (feature)); - while (factory->extensions[i]) { - g_print ("%s%s", i > 0 ? ", " : "", factory->extensions[i]); + while (extensions[i]) { + g_print ("%s%s", i > 0 ? ", " : "", extensions[i]); i++; } g_print ("\n"); |