gst/typefind/gsttypefindfunctions.c: Make plain/text typefinder more conservative...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 8 Mar 2006 17:11:29 +0000 (17:11 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 8 Mar 2006 17:11:29 +0000 (17:11 +0000)
commitca6e20ae1aa33ff1e51145c969e066c8cda6a796
tree7100188dd9a07540723daed108e729c762c02cab
parent1d629c12d7adf07ec1ffeb5392c494cd61ce40d6
gst/typefind/gsttypefindfunctions.c: Make plain/text typefinder more conservative: firstly, check for embedded zeroes...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c:
(utf8_type_find_count_embedded_zeroes),
(utf8_type_find_have_valid_utf8_at_offset), (utf8_type_find):
Make plain/text typefinder more conservative: firstly, check
for embedded zeroes, which are perfectly valid UTF-8 characters,
but also a fairly good sign that something is not a plain text
file; secondly, probe into the middle of the file if possible.
If we can't probe into the middle, limit the probability value
to be returned to TYPE_FIND_POSSIBLE (see #333900).
ChangeLog
gst/typefind/gsttypefindfunctions.c