miniobject: add gst_clear_mini_object()
authorNiels De Graef <nielsdegraef@gmail.com>
Sat, 3 Nov 2018 19:00:57 +0000 (20:00 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Nov 2018 11:06:30 +0000 (11:06 +0000)
commit7e69305657f547789bdca53211134bce9bb24a98
tree2205100b5b47ddbfa32b79408771e92ff3466f10
parentc5793f82d3386f0d5f5deeb1ba667e55b241f4da
miniobject: add gst_clear_mini_object()

This is based on g_clear_object(). Basically, you can use this instead
of using gst_mini_object_unref (which needs to be preceded by a NULL-check).

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