gst-inspect: fix printing the first field of a GstStructure
authorAntonio Ospite <antonio.ospite@collabora.com>
Fri, 5 Apr 2019 09:43:53 +0000 (11:43 +0200)
committerAntonio Ospite <antonio.ospite@collabora.com>
Fri, 5 Apr 2019 10:02:40 +0000 (12:02 +0200)
commit90beb712a02f95b2353783bd56818baa70c4d99a
treeef70d43b02d17ef7195503396c87d0b3a6066444
parent2fa15d53717c46619efb3011e7e61284483424a0
gst-inspect: fix printing the first field of a GstStructure

When printing a GstStructure property (e.g. the "stats" property in
rtpsession) the first field is printed on the same line of the type
description, and this is both inconsistent compared to  how Enum values
are printed and confusing as the reader might miss the first field.

To fix this, add a newline before printing GstStructure fields in
properties.

NOTE: this does not change the existing inconsistent behavior of an
extra newline *after* a GstStructure property, but the latter is not as
annoying and it would take more effort to fix because GstStructure
fields are printed in CAPS descriptions too.
tools/gst-inspect.c