gstvalue: allocate slightly larger than needed tables at startup
authorTim-Philipp Müller <tim@centricular.com>
Thu, 23 Nov 2017 12:56:51 +0000 (13:56 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 23 Nov 2017 12:56:51 +0000 (13:56 +0100)
commit7ea4152323f0e3ec521e1163e5ec54406da8fc62
treeeac371796a2c4d907a766162dce97b0a7346e8bf
parentc01949a99eef3619723297e38bea591e7968eda2
gstvalue: allocate slightly larger than needed tables at startup

If we pre-allocate only *exactly* as many nodes as we need for the
core types, we are practically guaranteed a re-alloc when external
code like GstVideoTimeCode or GstEncodingProfile register their
own GstValue things. So allocate a bit more than strictly needed.
gst/gstvalue.c