diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index b8c242a17d..9c8b10b665 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -225,8 +225,10 @@ print_factory_details_info (GstElementFactory * factory) n_print (" Rank:\t\t%s (%d)\n", get_rank_name (s, GST_PLUGIN_FEATURE (factory)->rank), GST_PLUGIN_FEATURE (factory)->rank); - gst_structure_foreach ((GstStructure *) factory->meta_data, - print_factory_details_meta_data, NULL); + if (factory->meta_data != NULL) { + gst_structure_foreach ((GstStructure *) factory->meta_data, + print_factory_details_meta_data, NULL); + } n_print ("\n"); }