projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a72f53
)
gst-inspect: don't use gst_structure_foreach() on NULL pointers
author
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Tue, 7 Sep 2010 10:09:16 +0000
(11:09 +0100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Tue, 7 Sep 2010 10:10:06 +0000
(11:10 +0100)
tools/gst-inspect.c
patch
|
blob
|
history
diff --git
a/tools/gst-inspect.c
b/tools/gst-inspect.c
index b8c242a17d4a6eae23b5aa10a05d57c6de8563b9..9c8b10b66504f362c59427b48e3c0cb69095d14c 100644
(file)
--- 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");
}