structure: micro-optimise some getters
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 17 Dec 2009 19:45:31 +0000 (19:45 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Jan 2010 19:37:46 +0000 (19:37 +0000)
commit4cdf375b1ad1f45eab8894a02c6ab7c75df1d0dd
tree39bd3770cda953c14d50dea9e5017fc836928322
parent17c98e3510e16958aa22af175ae315b9ae6ebe1d
structure: micro-optimise some getters

Avoid checking the GType of the value twice (once on our side and
once in g_value_get_*()) by by-passing g_value_get() and accessing
the GValue structure directly.
gst/gst_private.h
gst/gststructure.c