adapter: minor optimisation for gst_adapter_take_buffer_list()
authorTim-Philipp Müller <tim@centricular.com>
Sat, 14 Mar 2015 17:39:39 +0000 (17:39 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 14 Mar 2015 21:09:45 +0000 (21:09 +0000)
commit2b4d066355b7d8b25cc3699277e22513c73096e4
treec8893c6cc3f3f5f0d0b91d7acbc8ff425dcc888e
parentb1b718c6d0b5fae368deb5268072ab19eb70636d
adapter: minor optimisation for gst_adapter_take_buffer_list()

Try to allocate buffer list with a suitable size from the
beginning to avoid having to re-alloc the buffer list array.
libs/gst/base/gstadapter.c