gst-inspect: simplify the code for printing feature info
authorStefan Sauer <ensonic@users.sf.net>
Fri, 20 Oct 2017 09:08:14 +0000 (11:08 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Fri, 20 Oct 2017 09:11:37 +0000 (11:11 +0200)
commit2354c5b1521a53649d14b7d528462a1c8d19f3e4
tree367e1fd5d31a3ffa89e857e8bec6db9e48ff5935
parent4c8058272edf77766fa51d3a55d4cdc2fa3c816d
gst-inspect: simplify the code for printing feature info

Rename print_element_features() to print_feature_info() and move the code that
handles the ElementFactory there. This simplifies the calling code and improves
readability.

Also don't leak the features for other factories.
tools/gst-inspect.c