structure: add gst_clear_structure()
authorNiels De Graef <nielsdegraef@gmail.com>
Sun, 4 Nov 2018 18:04:19 +0000 (19:04 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Nov 2018 11:06:30 +0000 (11:06 +0000)
commite35dc31fda2fce5a65fd3df1ff141d5ff6d9cc44
treeb710e0d38efa99ecb6c2d4b529f5106eeb695199
parentfdeddb4b934c5d42399528bbc68c1cea1d2645c9
structure: add gst_clear_structure()

Basically, you can use this instead of using gst_structure_free (which
needs to be preceded by a NULL-check).

Also fixes #275
gst/gststructure.c
gst/gststructure.h