caps: add ANY and EMPTY singletons
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Dec 2011 12:14:07 +0000 (13:14 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Dec 2011 12:24:06 +0000 (13:24 +0100)
commit8ff059ba5990a47ef5065f1a90ba9616fd2651bb
tree946c11c06ac5e2ad101fe90383cba2b924155c18
parent04e09120940bb854a76dd4966d466c0f67c7622b
caps: add ANY and EMPTY singletons

Add a singleton for ANY and EMPTY caps and make the GST_CAPS_ANY and
GST_CAPS_NONE point to them. This makes the API more consistent now
that the macro does not magically create a ref. It also solves some leaks in
places where the macro was used to register a padtemplate.
gst/gstcaps.c
gst/gstcaps.h