typefindhelper: Avoid using buffer_get_size in tight loops
authorEdward Hervey <edward@collabora.com>
Tue, 16 Apr 2013 17:04:48 +0000 (19:04 +0200)
committerEdward Hervey <edward@collabora.com>
Tue, 30 Jul 2013 04:59:44 +0000 (06:59 +0200)
commit991d6462a809be807ac4bf2c66dc2f4627a87942
tree8afe3b736dfd128b836b3f7a87e5c9672d2081f8
parent964012bbe7b3aee676cf43784105c87788321a41
typefindhelper: Avoid using buffer_get_size in tight loops

Calling gst_buffer_get_size represented 2/3 of the cost of helper_find_peek
which was called whenever a typefindfunction wanted to peek at data.

We already know the size (from the GstMapInfo), so just use that.
libs/gst/base/gsttypefindhelper.c