mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst-inspect: don't use gst_structure_foreach() on NULL pointers
This commit is contained in:
parent
8a72f53312
commit
1b4504c50d
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
if (factory->meta_data != NULL) {
|
||||
gst_structure_foreach ((GstStructure *) factory->meta_data,
|
||||
print_factory_details_meta_data, NULL);
|
||||
}
|
||||
n_print ("\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue