plugins/elements/gsttypefindelement.c: When typefinding is unsuccessful in the chain...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 14 Feb 2006 20:57:31 +0000 (20:57 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 14 Feb 2006 20:57:31 +0000 (20:57 +0000)
commit573b793f08164c91ee826e88cd953a81103582f3
tree8b092c9d865d6315d42e07af70c2b49d5c561a83
parent63245ea1bbe619105c6974d68118a15bcff02eda
plugins/elements/gsttypefindelement.c: When typefinding is unsuccessful in the chain function, don't error out immedi...

Original commit message from CVS:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_chain):
When typefinding is unsuccessful in the chain function, don't
error out immediately. Only error out with NO_CAPS_FOUND if
the amount of data is at least MAX_TYPEFIND_SIZE bytes,
otherwise simply wait for more data so we can try typefinding
again with more data later. Also, don't attempt to typefind
if we have less than MIN_TYPEFIND_SIZE data available. Overall,
this should improve typefinding from network sources where the
size of the first buffer can be somewhat random.
ChangeLog
plugins/elements/gsttypefindelement.c