caps: add gst_clear_caps()
authorNiels De Graef <nielsdegraef@gmail.com>
Sun, 4 Nov 2018 17:53:31 +0000 (18:53 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Nov 2018 11:06:30 +0000 (11:06 +0000)
commita0fd447abeb52b3ce485209452b6ebfadb6126fb
tree783c3b83b4249cc6887a9ba6a96a03890cf5bc49
parentfa1d7a86aff0af42f4887fe1cd79689a1db942a1
caps: add gst_clear_caps()

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

Also fixes #275
gst/gstcaps.h