baseparse: prevent excessively high memory usage with long streams
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 13 Jun 2012 12:02:48 +0000 (13:02 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 28 Oct 2012 19:49:37 +0000 (19:49 +0000)
commit37a72b1a82143f47dc78933e209a3cb0e1f358d0
tree8bf9dc3cd441c9ded97af90773b4651625c447a4
parent21a74a6b79ad7395c9d70b202e30b859752dc4fd
baseparse: prevent excessively high memory usage with long streams

Large streams would index one frame every second, which can get quite
large with multi-hour streams, so add an additional byte-based
minimum distance as well, which will kick in for long streams
and make sure we never have more than a couple of thousand index
entries.

https://bugzilla.gnome.org/show_bug.cgi?id=666053
libs/gst/base/gstbaseparse.c