libs/gst/base/gsttypefindhelper.c: Fix off-by-one bug that would only allow peeks...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 24 May 2006 17:11:06 +0000 (17:11 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 24 May 2006 17:11:06 +0000 (17:11 +0000)
commit651061dfd9432c1f02bb58d992edc4643efdfe93
tree2ba25bebefb8256d7dbc8180ac07c8e74bbf29a8
parent649045a64b73b9da0240a7c87a827a07924d504a
libs/gst/base/gsttypefindhelper.c: Fix off-by-one bug that would only allow peeks of N-1 bytes from the start even if...

Original commit message from CVS:
* libs/gst/base/gsttypefindhelper.c: (buf_helper_find_peek):
Fix off-by-one bug that would only allow peeks of N-1 bytes
from the start even if the buffer to typefind on contains
in fact N bytes of data (makes vorbis typefinding from a
vorbis identification header buffer work).
* tests/check/Makefile.am:
* tests/check/libs/.cvsignore:
* tests/check/libs/typefindhelper.c: (GST_START_TEST),
(gst_typefindhelper_suite), (main), (foobar_typefind),
(plugin_init):
Add very basic unit test for gst_type_find_helper_for_buffer()
that checks for the problem fixed above.
ChangeLog
libs/gst/base/gsttypefindhelper.c
tests/check/Makefile.am
tests/check/libs/.gitignore
tests/check/libs/typefindhelper.c [new file with mode: 0644]