]> git.tuebingen.mpg.de Git - paraslash.git/commit
oggdec: Do not decode more than necessary.
authorAndre Noll <maan@systemlinux.org>
Wed, 11 Apr 2012 21:16:00 +0000 (23:16 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 19 May 2012 09:48:43 +0000 (11:48 +0200)
commit634e759f12fed8c6005526bc55a27c1f6562fecb
treec4584e086c5651cc0fae682cef6dd69ec103d57d
parent8f5de4b6e1c1299b0d8cf894474cad049f6b0958
oggdec: Do not decode more than necessary.

Currently the ogg vorbis decoder decodes at least one buffer per
scheduler iteration and checks only then if its output queue is already
full. This is bad for several reasons, increased memory footprint is
one of them.

This patch adds an additional check at the beginning of
ogg_post_select() that causes the function to return early if the
output queue is full.
oggdec_filter.c