buffer: add gst_clear_buffer()
authorNiels De Graef <nielsdegraef@gmail.com>
Sun, 4 Nov 2018 17:51:28 +0000 (18:51 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Nov 2018 11:06:30 +0000 (11:06 +0000)
commit1068d9e2c823041d3f75d5a99006e8ef51aec0ae
tree9132214d6a86503d27b2d4da0fae32cab52d6218
parent7e69305657f547789bdca53211134bce9bb24a98
buffer: add gst_clear_buffer()

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

Also fixes #275
gst/gstbuffer.h