event: add gst_clear_event()
authorNiels De Graef <nielsdegraef@gmail.com>
Sun, 4 Nov 2018 17:53:51 +0000 (18:53 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Nov 2018 11:06:30 +0000 (11:06 +0000)
commitefbfa54a4a6e0f01733e8dada547a4fb32c57648
tree257bc390587a76e0044d3f05fa516b43f04dfe26
parenta0fd447abeb52b3ce485209452b6ebfadb6126fb
event: add gst_clear_event()

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

Also fixes #275
gst/gstevent.h